Update README.md

This commit is contained in:
nora 2021-05-28 15:00:27 +02:00 committed by GitHub
parent c9aca7507f
commit 94728de4d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
```
```