1
0
Fork 0

Token: Add new tokens

master
an 2017-04-29 02:00:31 -04:00
parent 7f3a6e222e
commit 12558fca11
3 changed files with 9 additions and 3 deletions

View File

@ -28,6 +28,9 @@ Lth_X(Minus ) // -
Lth_X(Dot ) // .
Lth_X(Equals) // =
Lth_X(Semico) // ;
Lth_X(Comma ) // ,
Lth_X(GT ) // >
Lth_X(LT ) // <
Lth_X(BrackO) // [
Lth_X(BrackC) // ]

View File

@ -43,6 +43,9 @@ void Lth_TokenGet(FILE *fp, Lth_Token *out)
{
case '=': Lth_TokenSet(out, Equals); return;
case ';': Lth_TokenSet(out, Semico); return;
case ',': Lth_TokenSet(out, Comma ); return;
case '>': Lth_TokenSet(out, GT ); return;
case '<': Lth_TokenSet(out, LT ); return;
case '[': Lth_TokenSet(out, BrackO); return;
case ']': Lth_TokenSet(out, BrackC); return;