Lexical analyzer created from regular expressions
Analyzer is a token recognition oriented lexical analyzer using regular expressions to check the rules of assigned grammatical structures.
id + id - id = id + id - id / id
"id" represents alphanumeric values including decimals.
- int
- flo
- dou
- boo
- str
- pub
- class
- true
- false
- "=="
- ">="
- "<="
- "!="
- "="
- "!"
- ">"
- "<"
- "+"
- "-"
- "/"
- "%"
- "&&"
- "*"
- ";"
Reals and decimals
- An identifier cannot be called as a reserved word.
- Expressions must end with a semicolon. (;)
- Expressions cannot be put after the semicolon.
- Identifiers cannot have numbers or special symbols.
- Identifiers must be defined after their data type.
- Identifiers must have at least one separating space with respect to their data type.
- Operation expressions must be defined with only identifiers or numbers.
- Odd operations cannot be performed on an expression.




