1
0
Fork 0

Token: Add new tokens

master
an 2017-04-24 06:17:53 -04:00
parent 8a73dc69f0
commit 7c8da17172
2 changed files with 4 additions and 0 deletions

View File

@ -31,6 +31,8 @@ Lth_X(Semico) // ;
Lth_X(BrackO) // [
Lth_X(BrackC) // ]
Lth_X(BraceO) // {
Lth_X(BraceC) // }
Lth_X(LnEnd ) // \n

View File

@ -46,6 +46,8 @@ void Lth_TokenGet(FILE *fp, Lth_Token *out)
case '[': Lth_TokenSet(out, BrackO); return;
case ']': Lth_TokenSet(out, BrackC); return;
case '{': Lth_TokenSet(out, BraceO); return;
case '}': Lth_TokenSet(out, BraceC); return;
case '\n': Lth_TokenSet(out, LnEnd ); return;