I need help writing a lexical ANalyzer which can identify the followin token?

Keith

New member
1.INT_LIT: consists of digits and is less than 65536
2.ID_CODE: starts with a letter followed by letters and didgits, and has a limit length of 10
3.Assign Code: =
4.PlUS_CODE: +
5.MINUS_CODE: -
6.DIVISION_CODE: /
7.MULTIP_CODE: *
8.GREATER_CODE: >
9.LESS_CODE: <
10.LEFT_PAREN_CODE: (
11.RIGHT_PAREN_CODE:)
 
Back
Top