aboutsummaryrefslogtreecommitdiff
path: root/Sil/Parse.dcl
diff options
context:
space:
mode:
authorCamil Staps2017-07-18 13:20:31 +0000
committerCamil Staps2017-07-18 13:20:31 +0000
commit403e58dbb711a60ccffa5f9c0a97709c9d8a2cc5 (patch)
treefe1210ddfb21805492ba06e1e0b778da86df5f45 /Sil/Parse.dcl
parentAllow for multiple initialisations on one line (diff)
ABC machine instructions
Diffstat (limited to 'Sil/Parse.dcl')
-rw-r--r--Sil/Parse.dcl25
1 files changed, 13 insertions, 12 deletions
diff --git a/Sil/Parse.dcl b/Sil/Parse.dcl
index b48fdbc..a2f92cb 100644
--- a/Sil/Parse.dcl
+++ b/Sil/Parse.dcl
@@ -8,18 +8,19 @@ from Sil.Parse.Parser import class name
from Sil.Syntax import :: Program, :: Literal
:: Token
- = TParenOpen //* (
- | TParenClose //* )
- | TBraceOpen //* {
- | TBraceClose //* }
- | TComma //* ,
- | TSemicolon //* ;
- | TAssign //* :=
- | TLit Literal //* True; False; integers
- | TIf //* if
- | TWhile //* while
- | TReturn //* return
- | TName String //* a string
+ = TParenOpen //* (
+ | TParenClose //* )
+ | TBraceOpen //* {
+ | TBraceClose //* }
+ | TComma //* ,
+ | TSemicolon //* ;
+ | TAssign //* :=
+ | TLit Literal //* True; False; integers
+ | TIf //* if
+ | TWhile //* while
+ | TReturn //* return
+ | TMachineCode String //* |~ machine code
+ | TName String //* a string
instance == Token
instance toString Token