projects
/
henge
/
apc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
d7101d8
)
working?
author
Jordan
<jordanlavatai@gmail.com>
Tue, 17 Jan 2017 01:48:30 +0000
(17:48 -0800)
committer
Jordan
<jordanlavatai@gmail.com>
Tue, 17 Jan 2017 01:48:30 +0000
(17:48 -0800)
src/lexer.rl
patch
|
blob
|
history
diff --git
a/src/lexer.rl
b/src/lexer.rl
index
83915ec
..
ff2fa14
100644
(file)
--- 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);
tok = (name | val | ref | dimensions | map | link | SS | direction);
- main := (tok tok_delimiter)* tok
[.]
;
+ main := (tok tok_delimiter)* tok ;
write data nofinal noerror noprefix;
write data nofinal noerror noprefix;
@@
-143,7
+143,7
@@
int lexer_lexstring
YYSTYPE lval;
ntok = 0;
p = ts = str;
YYSTYPE lval;
ntok = 0;
p = ts = str;
- pe = eof = p + size
+ 1
;
+ pe = eof = p + size;
%%write init;
%%write exec;
return ntok;
%%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;
{ 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
for (iter = filename; *iter; iter++)
switch (*iter)
{ // Keep track of the last 'dot' in the name