diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2011-02-02 12:55:17 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2011-02-02 12:55:17 -0200 |
commit | a4a8914c2097bdcaaa4e82c5fd1c9b0c7371e432 (patch) | |
tree | 82bb309a47e3ea1dea4d581ec0df8c8eea86ada8 | |
parent | 06c7efb4a91a96565ab7a964dfac65392aaf2fd6 (diff) | |
download | lua-a4a8914c2097bdcaaa4e82c5fd1c9b0c7371e432.tar.gz lua-a4a8914c2097bdcaaa4e82c5fd1c9b0c7371e432.tar.bz2 lua-a4a8914c2097bdcaaa4e82c5fd1c9b0c7371e432.zip |
new reserved word 'goto'
-rw-r--r-- | llex.c | 4 | ||||
-rw-r--r-- | llex.h | 4 |
2 files changed, 4 insertions, 4 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: llex.c,v 2.43 2010/12/10 14:53:15 roberto Exp roberto $ | 2 | ** $Id: llex.c,v 2.44 2011/01/26 16:30:02 roberto Exp roberto $ |
3 | ** Lexical Analyzer | 3 | ** Lexical Analyzer |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -35,7 +35,7 @@ | |||
35 | /* ORDER RESERVED */ | 35 | /* ORDER RESERVED */ |
36 | static const char *const luaX_tokens [] = { | 36 | static const char *const luaX_tokens [] = { |
37 | "and", "break", "do", "else", "elseif", | 37 | "and", "break", "do", "else", "elseif", |
38 | "end", "false", "for", "function", "if", | 38 | "end", "false", "for", "function", "goto", "if", |
39 | "in", "local", "nil", "not", "or", "repeat", | 39 | "in", "local", "nil", "not", "or", "repeat", |
40 | "return", "then", "true", "until", "while", | 40 | "return", "then", "true", "until", "while", |
41 | "..", "...", "==", ">=", "<=", "~=", "<eof>", | 41 | "..", "...", "==", ">=", "<=", "~=", "<eof>", |
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: llex.h,v 1.64 2010/03/13 15:55:42 roberto Exp roberto $ | 2 | ** $Id: llex.h,v 1.65 2010/04/05 16:35:37 roberto Exp roberto $ |
3 | ** Lexical Analyzer | 3 | ** Lexical Analyzer |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -25,7 +25,7 @@ enum RESERVED { | |||
25 | /* terminal symbols denoted by reserved words */ | 25 | /* terminal symbols denoted by reserved words */ |
26 | TK_AND = FIRST_RESERVED, TK_BREAK, | 26 | TK_AND = FIRST_RESERVED, TK_BREAK, |
27 | TK_DO, TK_ELSE, TK_ELSEIF, TK_END, TK_FALSE, TK_FOR, TK_FUNCTION, | 27 | TK_DO, TK_ELSE, TK_ELSEIF, TK_END, TK_FALSE, TK_FOR, TK_FUNCTION, |
28 | TK_IF, TK_IN, TK_LOCAL, TK_NIL, TK_NOT, TK_OR, TK_REPEAT, | 28 | TK_GOTO, TK_IF, TK_IN, TK_LOCAL, TK_NIL, TK_NOT, TK_OR, TK_REPEAT, |
29 | TK_RETURN, TK_THEN, TK_TRUE, TK_UNTIL, TK_WHILE, | 29 | TK_RETURN, TK_THEN, TK_TRUE, TK_UNTIL, TK_WHILE, |
30 | /* other terminal symbols */ | 30 | /* other terminal symbols */ |
31 | TK_CONCAT, TK_DOTS, TK_EQ, TK_GE, TK_LE, TK_NE, TK_EOS, | 31 | TK_CONCAT, TK_DOTS, TK_EQ, TK_GE, TK_LE, TK_NE, TK_EOS, |