projects
/
henge
/
apc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5ef654a
)
struct name removed
author
ken
<ken@mihrtec.com>
Sat, 17 Dec 2016 23:41:54 +0000
(15:41 -0800)
committer
ken
<ken@mihrtec.com>
Sat, 17 Dec 2016 23:41:54 +0000
(15:41 -0800)
src/lexer_fsm.rl
patch
|
blob
|
history
diff --git
a/src/lexer_fsm.rl
b/src/lexer_fsm.rl
index
7b72e5d
..
bbbdf30
100644
(file)
--- a/
src/lexer_fsm.rl
+++ b/
src/lexer_fsm.rl
@@
-9,7
+9,6
@@
extern void lexer_pushtok(int, YYSTYPE);
extern int lexer_lexmapfile(int, int);
extern int ipower(int, int);
extern int ttov(uint8_t*, int);
extern int lexer_lexmapfile(int, int);
extern int ipower(int, int);
extern int ttov(uint8_t*, int);
-extern struct name* tton(const uint8_t*, int);
int lexer_setdirection(uint8_t*, int);
int lexer_lexstring(uint8_t*, int);
int lexer_setdirection(uint8_t*, int);
int lexer_lexstring(uint8_t*, int);
@@
-32,7
+31,8
@@
int lexer_setstr(uint8_t*, int);
action push_ref { PUSHTOK(REF, ttov, ref); }
action push_val { PUSHTOK(NUM, ttov, val); }
action push_name { printf("Lexer_lexstring:: action:push_name: from %s to %s\n", ts, p);
action push_ref { PUSHTOK(REF, ttov, ref); }
action push_val { PUSHTOK(NUM, ttov, val); }
action push_name { printf("Lexer_lexstring:: action:push_name: from %s to %s\n", ts, p);
- PUSHTOK(NAME, tton, name);
+ lexer_pushtok(NAME, yylval);
+ ntok++;
}
action push_map { printf("Lexer_lexstring:: action:push_map: pushing map token\n");
yylval.str = (uint8_t*) '~';
}
action push_map { printf("Lexer_lexstring:: action:push_map: pushing map token\n");
yylval.str = (uint8_t*) '~';