mirror of
https://github.com/Noratrieb/GRSBPL.git
synced 2026-01-14 19:55:03 +01:00
Update README.md
This commit is contained in:
parent
c9aca7507f
commit
94728de4d4
1 changed files with 4 additions and 5 deletions
|
|
@ -1,9 +1,7 @@
|
|||
# GRSBPL - Generic Random Stack Based Programming Language
|
||||
|
||||
## line numbers are broken I know
|
||||
|
||||
uses some form of reverse polish notation
|
||||
|
||||
A language that works on the stack (and has lots of other cool non-stack-based features)
|
||||
```
|
||||
1 5 * 5 +
|
||||
> 10
|
||||
|
|
@ -64,7 +62,8 @@ stderr.
|
|||
* `# comment\n` text after # is ignored
|
||||
|
||||
`<ident>`: \w+, not a keyword
|
||||
`<number>`: \d+
|
||||
`<number>`: decimal | hexadecimal with 0x prefix integer | binary with 0b prefix | octal with o prefix, underscores are
|
||||
allowed anywhere in number
|
||||
`<digit>`: \d
|
||||
`<character>`: single character
|
||||
|
||||
|
|
@ -156,4 +155,4 @@ dup not goto isZero
|
|||
5 swap goto exit # push 5 to the 2nd stack position
|
||||
...
|
||||
:exit &del # pop the top stack value to expose the pushed value
|
||||
```
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue