From d2155031d07a44e33ee229178a3a73d2408a5098 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?P=C5=99emysl=20Janouch?=
Date: Sat, 20 May 2017 21:24:11 +0200
Subject: Implement if, for, map, filter
---
README.adoc | 30 ++++++++++++++++++++++++++----
1 file changed, 26 insertions(+), 4 deletions(-)
(limited to 'README.adoc')
diff --git a/README.adoc b/README.adoc
index 376edfc..e1b663c 100644
--- a/README.adoc
+++ b/README.adoc
@@ -10,6 +10,8 @@ reasonably comfortable to use.
This package is an implementation of said language, meant to be self-contained,
portable and reusable. Performance is specifically not an intent.
+The project is currently in a "working proof of concept" stage.
+
Syntax
------
Owing to its Scheme heritage, 'ell' is homoiconic, that is a program can be
@@ -70,17 +72,37 @@ from the outer scope.
Standard library
----------------
+`set []`
+
+Retrieves or sets a named variable.
+
+`list`
+
+Returns a list of parameters. The syntax sugar for lists is `[]`.
+
`if [elif ]... [else ]`
Conditional evaluation, strings evaluate to themselves.
-`funargs`
+`for `
-Returns arguments to the current evaluation context as a list.
+Run the body for each element.
-`list`
+`map `
-Returns a list of parameters. The syntax sugar for lists is `[]`.
+Transform each element with the given function.
+
+`filter `
+
+Return a new list consisting of matching elements only.
+
+`.. []...`
+
+Concatenates strings.
+
+`print [- ]...`
+
+Prints all items in sequence--strings directly, lists as source code.
Contributing and Support
------------------------
--
cgit v1.2.3