Move from Jansson to JV - everything but the interpreter loop
Passes valgrind --leak-check=full.
This commit is contained in:
1 parent
22f8aed31e
commit
2cb9a6e61d
12 files changed
+170
-123
No files matched your search
@@ -15,8 +15,8 @@
|
||||
"|=" { return SETPIPE; }
|
||||
"."|"="|";"|"["|"]"|","|":"|"("|")"|"{"|"}"|"|"|"+"|"\$" { return yytext[0];}
|
||||
|
||||
[[:digit:]]+ { yylval->num = atoi(yytext); return NUMBER;}
|
||||
[[:alnum:]]+ { yylval->str = strdup(yytext); return IDENT;}
|
||||
[[:digit:]]+ { yylval->literal = jv_number((double)atoi(yytext)); return LITERAL;}
|
||||
[[:alnum:]]+ { yylval->literal = jv_string(yytext); return IDENT;}
|
||||
[ \n\t]+ {}
|
||||
%%
|
||||
/* perhaps these should be calls... */
|
||||
|
||||
Reference in new issue
Block a user