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" |
|||
⚫ | |||
|- |
|||
⚫ | |||
! Characters !! Common name !! Name |
|||
'+' plus Add |
|||
|- |
|||
⚫ | |||
' |
| '*' || multiply || Mul |
||
|- |
|||
⚫ | |||
' |
| '/' || divide || Div |
||
|- |
|||
⚫ | |||
' |
| '+' || plus || Add |
||
|- |
|||
'&&' and And |
|||
⚫ | |||
|- |
|||
| '<' || less than || Lss |
|||
|- |
|||
⚫ | |||
|- |
|||
| '>' || greater than || Gtr |
|||
|- |
|||
⚫ | |||
|- |
|||
⚫ | |||
|- |
|||
⚫ | |||
|} |
|||
symbols: |
symbols: |