working?
authorJordan <jordanlavatai@gmail.com>
Tue, 17 Jan 2017 01:48:30 +0000 (17:48 -0800)
committerJordan <jordanlavatai@gmail.com>
Tue, 17 Jan 2017 01:48:30 +0000 (17:48 -0800)
src/lexer.rl

index 83915ec..ff2fa14 100644 (file)
@@ -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