added semicolon token
This commit is contained in:
parent
a2337c63db
commit
0a5ab301d1
3
src/lt.c
3
src/lt.c
|
@ -60,7 +60,7 @@ char *LT_TkNames[] = {
|
|||
"TOK_OrX", "TOK_Sub2", "TOK_Sub", "TOK_String", "TOK_Charac", "TOK_Number",
|
||||
"TOK_Identi", "TOK_EOF", "TOK_ChrSeq", "TOK_Comment","TOK_Period", "TOK_Arrow",
|
||||
"TOK_Sigil", "TOK_Hash", "TOK_BlkCmtO","TOK_BlkCmtC","TOK_Exp", "TOK_NstCmtO",
|
||||
"TOK_NstCmtC"
|
||||
"TOK_NstCmtC", "TOK_Semicl"
|
||||
};
|
||||
|
||||
/*
|
||||
|
@ -599,6 +599,7 @@ LT_Token LT_GetToken()
|
|||
case '#': tk.token = LT_TkNames[TOK_Hash]; return tk;
|
||||
case '.': tk.token = LT_TkNames[TOK_Period]; return tk;
|
||||
case ':': tk.token = LT_TkNames[TOK_Colon]; return tk;
|
||||
case ';': tk.token = LT_TkNames[TOK_Semicl]; return tk;
|
||||
case ',': tk.token = LT_TkNames[TOK_Comma]; return tk;
|
||||
case '%': tk.token = LT_TkNames[TOK_Mod]; return tk;
|
||||
case '?': tk.token = LT_TkNames[TOK_Query]; return tk;
|
||||
|
|
2
src/lt.h
2
src/lt.h
|
@ -61,7 +61,7 @@ enum
|
|||
TOK_OrX, TOK_Sub2, TOK_Sub, TOK_String, TOK_Charac,
|
||||
TOK_Number, TOK_Identi, TOK_EOF, TOK_ChrSeq, TOK_Comment,
|
||||
TOK_Period, TOK_Arrow, TOK_Sigil, TOK_Hash, TOK_BlkCmtO,
|
||||
TOK_BlkCmtC,TOK_Exp, TOK_NstCmtO,TOK_NstCmtC
|
||||
TOK_BlkCmtC,TOK_Exp, TOK_NstCmtO,TOK_NstCmtC, TOK_Semicl
|
||||
};
|
||||
|
||||
enum
|
||||
|
|
Reference in New Issue
Block a user