From: Jordan Date: Tue, 17 Jan 2017 01:48:30 +0000 (-0800) Subject: working? X-Git-Url: https://www.kengrimes.com/gitweb/?p=henge%2Fapc.git;a=commitdiff_plain;h=a0158f91cb212534a45c455f1d155fff45f7ff80 working? --- diff --git a/src/lexer.rl b/src/lexer.rl index 83915ec..ff2fa14 100644 --- a/src/lexer.rl +++ b/src/lexer.rl @@ -113,7 +113,7 @@ uint8_t lval_offs; tok = (name | val | ref | dimensions | map | link | SS | direction); - main := (tok tok_delimiter)* tok [.]; + main := (tok tok_delimiter)* tok ; write data nofinal noerror noprefix; @@ -143,7 +143,7 @@ int lexer_lexstring YYSTYPE lval; ntok = 0; p = ts = str; - pe = eof = p + size + 1; + pe = eof = p + size; %%write init; %%write exec; return ntok; @@ -159,7 +159,6 @@ int lexer_lexfile { uint8_t* last_period,* iter,* filename_end; int ntok; last_period = NULL; - printf("size of file = %d\n", u8_strlen(filename)); for (iter = filename; *iter; iter++) switch (*iter) { // Keep track of the last 'dot' in the name