Archived
1
0

added semicolon token

This commit is contained in:
Marrub 2015-06-07 08:02:33 -04:00
parent a2337c63db
commit 0a5ab301d1
2 changed files with 20 additions and 19 deletions

View File

@ -60,7 +60,7 @@ char *LT_TkNames[] = {
"TOK_OrX", "TOK_Sub2", "TOK_Sub", "TOK_String", "TOK_Charac", "TOK_Number", "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_Identi", "TOK_EOF", "TOK_ChrSeq", "TOK_Comment","TOK_Period", "TOK_Arrow",
"TOK_Sigil", "TOK_Hash", "TOK_BlkCmtO","TOK_BlkCmtC","TOK_Exp", "TOK_NstCmtO", "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_Hash]; return tk;
case '.': tk.token = LT_TkNames[TOK_Period]; 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_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_Comma]; return tk;
case '%': tk.token = LT_TkNames[TOK_Mod]; return tk; case '%': tk.token = LT_TkNames[TOK_Mod]; return tk;
case '?': tk.token = LT_TkNames[TOK_Query]; return tk; case '?': tk.token = LT_TkNames[TOK_Query]; return tk;

View File

@ -61,7 +61,7 @@ enum
TOK_OrX, TOK_Sub2, TOK_Sub, TOK_String, TOK_Charac, TOK_OrX, TOK_Sub2, TOK_Sub, TOK_String, TOK_Charac,
TOK_Number, TOK_Identi, TOK_EOF, TOK_ChrSeq, TOK_Comment, TOK_Number, TOK_Identi, TOK_EOF, TOK_ChrSeq, TOK_Comment,
TOK_Period, TOK_Arrow, TOK_Sigil, TOK_Hash, TOK_BlkCmtO, 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 enum