diff options
author | Mike Buland <eichlan@xagasoft.com> | 2011-12-29 17:03:20 -0700 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2011-12-29 17:03:20 -0700 |
commit | f404d991aa53ed81855e51b597bfe1d5c2288b42 (patch) | |
tree | d2ce081cc722eccc089591c63ea0a345b4b4701c /src/parser.l | |
parent | 1bd7f709f5217b248fcb3a4c7be2eeca84fec795 (diff) | |
download | stage-f404d991aa53ed81855e51b597bfe1d5c2288b42.tar.gz stage-f404d991aa53ed81855e51b597bfe1d5c2288b42.tar.bz2 stage-f404d991aa53ed81855e51b597bfe1d5c2288b42.tar.xz stage-f404d991aa53ed81855e51b597bfe1d5c2288b42.zip |
Most operators work, as well as if/then/else.
Loops should be very easy, but we don't have lists working yet, next is
scope selection.
Diffstat (limited to 'src/parser.l')
-rw-r--r-- | src/parser.l | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/parser.l b/src/parser.l index 3491d27..1743dd6 100644 --- a/src/parser.l +++ b/src/parser.l | |||
@@ -76,7 +76,9 @@ null { return tokNull; } | |||
76 | } | 76 | } |
77 | 77 | ||
78 | ([1-9][0-9]*)?\.[0-9]* { | 78 | ([1-9][0-9]*)?\.[0-9]* { |
79 | printf("Parsing float: %s\n", yytext ); | ||
79 | yylval->dValue = strtod( yytext, NULL ); | 80 | yylval->dValue = strtod( yytext, NULL ); |
81 | printf("Final float: %f\n", yylval->dValue ); | ||
80 | return tokFloat; | 82 | return tokFloat; |
81 | } | 83 | } |
82 | 84 | ||