Token: Add new tokens
parent
7f3a6e222e
commit
12558fca11
|
@ -78,9 +78,9 @@ typedef struct Lth_HashMap
|
||||||
Lth_HashMapElem **table;
|
Lth_HashMapElem **table;
|
||||||
Lth_Vector(Lth_HashMapElem) elem;
|
Lth_Vector(Lth_HashMapElem) elem;
|
||||||
|
|
||||||
__prop destroy {call: Lth_HashMapDestroy(this)}
|
__prop destroy {call: Lth_HashMapDestroy(this)}
|
||||||
__prop alloc {call: Lth_HashMapAlloc (this)}
|
__prop alloc {call: Lth_HashMapAlloc (this)}
|
||||||
__prop build {call: Lth_HashMapBuild (this)}
|
__prop build {call: Lth_HashMapBuild (this)}
|
||||||
__prop findhash {call: Lth_HashMapFind_hash (this)}
|
__prop findhash {call: Lth_HashMapFind_hash (this)}
|
||||||
__prop findwchr {call: Lth_HashMapFind_wchar(this)}
|
__prop findwchr {call: Lth_HashMapFind_wchar(this)}
|
||||||
__prop find_str {call: Lth_HashMapFind_str (this)}
|
__prop find_str {call: Lth_HashMapFind_str (this)}
|
||||||
|
|
|
@ -28,6 +28,9 @@ Lth_X(Minus ) // -
|
||||||
Lth_X(Dot ) // .
|
Lth_X(Dot ) // .
|
||||||
Lth_X(Equals) // =
|
Lth_X(Equals) // =
|
||||||
Lth_X(Semico) // ;
|
Lth_X(Semico) // ;
|
||||||
|
Lth_X(Comma ) // ,
|
||||||
|
Lth_X(GT ) // >
|
||||||
|
Lth_X(LT ) // <
|
||||||
|
|
||||||
Lth_X(BrackO) // [
|
Lth_X(BrackO) // [
|
||||||
Lth_X(BrackC) // ]
|
Lth_X(BrackC) // ]
|
||||||
|
|
|
@ -43,6 +43,9 @@ void Lth_TokenGet(FILE *fp, Lth_Token *out)
|
||||||
{
|
{
|
||||||
case '=': Lth_TokenSet(out, Equals); return;
|
case '=': Lth_TokenSet(out, Equals); return;
|
||||||
case ';': Lth_TokenSet(out, Semico); 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, BrackO); return;
|
||||||
case ']': Lth_TokenSet(out, BrackC); return;
|
case ']': Lth_TokenSet(out, BrackC); return;
|
||||||
|
|
Loading…
Reference in New Issue