lexer adding is_number
This commit is contained in:
@@ -5,11 +5,11 @@
|
||||
|
||||
typedef enum
|
||||
{
|
||||
TOKEN_PLUS, // +
|
||||
TOKEN_MINUS, // -
|
||||
TOKEN_VARIABLE, // x, y, etc.
|
||||
TOKEN_NUMBER, // int or double
|
||||
TOKEN_POWER, // ^ or **
|
||||
TOKEN_PLUS, // +
|
||||
TOKEN_MINUS, // -
|
||||
TOKEN_MULTIPLICATION, // *
|
||||
TOKEN_DIVISION, // /
|
||||
TOKEN_END // null (end of input)
|
||||
|
||||
Reference in New Issue
Block a user