aboutsummaryrefslogtreecommitdiff
path: root/llex.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-06-20 18:07:57 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-06-20 18:07:57 -0300
commitfccadba4b54f8e13c8b9cfc97307f53931496936 (patch)
tree12c65eb6653b386358b932794fa7afb9c48ae6bb /llex.c
parentb940f09984b47979caf8142046e1fe813e531e3d (diff)
downloadlua-fccadba4b54f8e13c8b9cfc97307f53931496936.tar.gz
lua-fccadba4b54f8e13c8b9cfc97307f53931496936.tar.bz2
lua-fccadba4b54f8e13c8b9cfc97307f53931496936.zip
new reserved words `in' and `global'
Diffstat (limited to 'llex.c')
-rw-r--r--llex.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/llex.c b/llex.c
index c921b1b4..6ca4ef75 100644
--- a/llex.c
+++ b/llex.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: llex.c,v 1.86 2001/06/13 14:25:49 roberto Exp roberto $ 2** $Id: llex.c,v 1.87 2001/06/15 20:36:57 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*/
@@ -28,10 +28,11 @@
28/* ORDER RESERVED */ 28/* ORDER RESERVED */
29static const l_char *const token2string [] = { 29static const l_char *const token2string [] = {
30 l_s("and"), l_s("break"), l_s("do"), l_s("else"), l_s("elseif"), 30 l_s("and"), l_s("break"), l_s("do"), l_s("else"), l_s("elseif"),
31 l_s("end"), l_s("for"), l_s("function"), l_s("if"), l_s("local"), 31 l_s("end"), l_s("for"), l_s("function"), l_s("global"), l_s("if"),
32 l_s("nil"), l_s("not"), l_s("or"), l_s("repeat"), l_s("return"), 32 l_s("in"), l_s("local"), l_s("nil"), l_s("not"), l_s("or"), l_s("repeat"),
33 l_s("then"), l_s("until"), l_s("while"), l_s(""), l_s(".."), l_s("..."), 33 l_s("return"), l_s("then"), l_s("until"), l_s("while"), l_s(""),
34 l_s("=="), l_s(">="), l_s("<="), l_s("~="), l_s(""), l_s(""), l_s("<eof>") 34 l_s(".."), l_s("..."), l_s("=="), l_s(">="), l_s("<="), l_s("~="),
35 l_s(""), l_s(""), l_s("<eof>")
35}; 36};
36 37
37 38