mirror of
https://github.com/flynx/Slang.git
synced 2025-10-29 02:30:08 +00:00
updating docs...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
2e173f9786
commit
627237af1b
@ -1,5 +1,5 @@
|
|||||||
CACHE MANIFEST
|
CACHE MANIFEST
|
||||||
# Timestamp: 20170825132449
|
# Timestamp: 20170825173434
|
||||||
|
|
||||||
CACHE:
|
CACHE:
|
||||||
slang.html
|
slang.html
|
||||||
|
|||||||
@ -539,6 +539,9 @@ var BOOTSTRAP =
|
|||||||
|
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
Slang Basics
|
||||||
|
------------
|
||||||
|
|
||||||
The system consists of:
|
The system consists of:
|
||||||
- Stack
|
- Stack
|
||||||
- Code
|
- Code
|
||||||
@ -574,21 +577,22 @@ var BOOTSTRAP =
|
|||||||
Words may read and affect any of the three system parts:
|
Words may read and affect any of the three system parts:
|
||||||
- Stack
|
- Stack
|
||||||
- Code
|
- Code
|
||||||
- Namespace (not yet fully implemented)
|
- Namespace
|
||||||
|
|
||||||
Traditioannly, in stack languages words affect only the stack, this is
|
Traditioannly, in stack languages words affect only the stack, this is
|
||||||
one of the motivations to implement Slang, that is, to experiment with
|
one of the motivations to implement Slang, that is, to experiment with
|
||||||
different ways to go with stack languages.
|
different ways to go with stack languages.
|
||||||
|
|
||||||
|
|
||||||
TODO: add a complete word-set for work with lists/blocks
|
|
||||||
TODO: add a complete word-set for work with dicts/namespaces
|
|
||||||
TODO: add topological comparison/diff
|
TODO: add topological comparison/diff
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
-----------------------------------------------------------------------------
|
-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
Stack effect notation
|
||||||
|
---------------------
|
||||||
|
|
||||||
Traditionally, stack languages use a "stack effect" notation to document how
|
Traditionally, stack languages use a "stack effect" notation to document how
|
||||||
words affect the stack state, a kind of before-after transformation. here is
|
words affect the stack state, a kind of before-after transformation. here is
|
||||||
a basic example showing how the word "add" works:
|
a basic example showing how the word "add" works:
|
||||||
@ -636,6 +640,9 @@ var BOOTSTRAP =
|
|||||||
|
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
Blocks / Lists
|
||||||
|
--------------
|
||||||
|
|
||||||
Basic words for block manipulation:
|
Basic words for block manipulation:
|
||||||
|
|
||||||
Get block length
|
Get block length
|
||||||
@ -719,7 +726,8 @@ var BOOTSTRAP =
|
|||||||
|
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
|
|
||||||
Objects and namespaces:
|
Objects and namespaces
|
||||||
|
----------------------
|
||||||
|
|
||||||
Get the namespace object...
|
Get the namespace object...
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user