Skip to content

Commit

Permalink
added information about the il, and examples of using the ssp
Browse files Browse the repository at this point in the history
  • Loading branch information
Centrix14 committed Jan 2, 2020
1 parent b8b6c98 commit 2eaf4f0
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

## Overview
+ `(` / `)` -- take everything in parentheses as a whole works like quotation marks in other languages (`(word1 word2)` - will be read as "word1 word2")
+ `:` -- initialize the current selected element with a value (`:12` - now element 0 stores the value 12)
+ `:` -- initialize the current selected element with a value (`:12` - now element 0 stores the value 12). If `il` is specified as an argument, the element will be initialized with the length of the interval (see the description of the `[` & `]` commands).
+ `^` -- go to the item with the number (`^123` - now 123 is the current work item)
+ `>` / `<` -- move right / left in the array (`>>` - move the current work item pointer 2 items forward)
+ `_!` -- display the value of the current item (`:123(_!)` - displays the value of element 123 on the screen)
Expand Down
3 changes: 3 additions & 0 deletions examples/ssp/01_macro.spf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.macro var 0

^ var : 123 (_!)
3 changes: 3 additions & 0 deletions examples/ssp/02_link.spf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.link link_me.spf

print
1 change: 1 addition & 0 deletions examples/ssp/link_me.spf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.macro print {|(Hello from link_me.spf!)@(-!)}

0 comments on commit 2eaf4f0

Please sign in to comment.