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

@ -78,9 +78,9 @@ typedef struct Lth_HashMap
Lth_HashMapElem **table;
Lth_Vector(Lth_HashMapElem) elem;
__prop destroy {call: Lth_HashMapDestroy(this)}
__prop alloc {call: Lth_HashMapAlloc (this)}
__prop build {call: Lth_HashMapBuild (this)}
__prop destroy {call: Lth_HashMapDestroy(this)}
__prop alloc {call: Lth_HashMapAlloc (this)}
__prop build {call: Lth_HashMapBuild (this)}
__prop findhash {call: Lth_HashMapFind_hash (this)}
__prop findwchr {call: Lth_HashMapFind_wchar(this)}
__prop find_str {call: Lth_HashMapFind_str (this)}

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;