# S:=space, T:=tab, L:=Line Feed
S (?: S ([ST][ST]+)L | # push n
TS([ST][ST]+)L | # copy n-th item
TL([ST][ST]+)L | # slide n items
LS() | # dup
LT() | # swap
LL() )| # drop
TS(?: SS()|ST()|SL()|TS()|TT() )| # + - * // %
TT(?: S ()|T () )| # store retrieve
TL(?: SS()|ST()|TS()|TT() )| # putchar putnum getchar getnum
L (?: SS([ST]+)L | # set label
ST([ST]+)L | # call subroutine
SL([ST]+)L | # jump to label
TS([ST]+)L | # jump to label if push ==0
TT([ST]+)L | # jump to label if push < 0
TL() | # end subroutine
LL() ) # end program
-
Notifications
You must be signed in to change notification settings - Fork 0
apua/whitespace
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
implementation of whitespace interpreter
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published