diff options
author | Camil Staps | 2017-07-18 13:20:31 +0000 |
---|---|---|
committer | Camil Staps | 2017-07-18 13:20:31 +0000 |
commit | 403e58dbb711a60ccffa5f9c0a97709c9d8a2cc5 (patch) | |
tree | fe1210ddfb21805492ba06e1e0b778da86df5f45 /Sil/Parse.dcl | |
parent | Allow for multiple initialisations on one line (diff) |
ABC machine instructions
Diffstat (limited to 'Sil/Parse.dcl')
-rw-r--r-- | Sil/Parse.dcl | 25 |
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 |