User:Ed Davis: Difference between revisions

Content added Content deleted
No edit summary
No edit summary
Line 14: Line 14:
Create a lexical analyzer for the Tiny programming language.
Create a lexical analyzer for the Tiny programming language.


Specification
;Specification
-------------


{| class="wikitable"
{| class="wikitable"
Line 38: Line 37:
operators:
operators:


{| class="wikitable"
'*' multiply Mul
|-
'/' divide Div
! Characters !! Common name !! Name
'+' plus Add
|-
'-' minus and unary minus Sub and Uminus
'<' less than Lss
| '*' || multiply || Mul
|-
'<=' less than or equal Leq
'>' greater than Gtr
| '/' || divide || Div
|-
'!=' not equal Neq
'=' assign Assign
| '+' || plus || Add
|-
'&&' and And
| '-' || minus and unary minus || Sub and Uminus
|-
| '<' || less than || Lss
|-
| '<=' || less than or equal || Leq
|-
| '>' || greater than || Gtr
|-
| '!=' || not equal || Neq
|-
| '=' || assign || Assign
|-
| '&&' || and || And
|}


symbols:
symbols: