git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
SpiderScript - Restructured to be able to keep bytecode and AST in memory at one...
[tpg/acess2.git]
/
Usermode
/
Libraries
/
libspiderscript.so_src
/
lex.c
diff --git
a/Usermode/Libraries/libspiderscript.so_src/lex.c
b/Usermode/Libraries/libspiderscript.so_src/lex.c
index
610c2f2
..
bb86198
100644
(file)
--- a/
Usermode/Libraries/libspiderscript.so_src/lex.c
+++ b/
Usermode/Libraries/libspiderscript.so_src/lex.c
@@
-7,10
+7,6
@@
#include <stdio.h>
#include <string.h>
#include <stdio.h>
#include <string.h>
-// Make the scope character ('.') be a symbol, otherwise it's just
-// a ident character
-#define USE_SCOPE_CHAR 0
-
#define DEBUG 0
#define ARRAY_SIZE(x) ((sizeof(x))/(sizeof((x)[0])))
#define DEBUG 0
#define ARRAY_SIZE(x) ((sizeof(x))/(sizeof((x)[0])))
@@
-29,6
+25,8
@@
const struct {
{TOK_RWD_FUNCTION, "function"},
{TOK_RWD_RETURN, "return"},
{TOK_RWD_FUNCTION, "function"},
{TOK_RWD_RETURN, "return"},
+ {TOK_RWD_BREAK, "break"},
+ {TOK_RWD_CONTINUE, "continue"},
{TOK_RWD_NEW, "new"},
{TOK_RWD_IF, "if"},
{TOK_RWD_NEW, "new"},
{TOK_RWD_IF, "if"},
@@
-37,6
+35,7
@@
const struct {
{TOK_RWD_WHILE, "while"},
{TOK_RWD_FOR, "for"},
{TOK_RWD_WHILE, "while"},
{TOK_RWD_FOR, "for"},
+ {TOK_RWD_NULL, "null"},
{TOK_RWD_VOID, "void"},
{TOK_RWD_OBJECT, "Object"},
{TOK_RWD_OPAQUE, "Opaque"},
{TOK_RWD_VOID, "void"},
{TOK_RWD_OBJECT, "Object"},
{TOK_RWD_OPAQUE, "Opaque"},
UCC
git Repository :: git.ucc.asn.au