diff options
author | Tavian Barnes <tavianator@gmail.com> | 2010-02-09 18:58:56 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2010-02-09 19:13:46 -0500 |
commit | d411e681e571ac054352b9665487f10037d9325d (patch) | |
tree | cf5d425426624ca4798b286fc81116e46f31cb1d /dimension/lexer.l | |
parent | 7eef42c72cc172a1ed8087e842905f42e737131d (diff) | |
download | dimension-d411e681e571ac054352b9665487f10037d9325d.tar.xz |
Support #include.
Diffstat (limited to 'dimension/lexer.l')
-rw-r--r-- | dimension/lexer.l | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/dimension/lexer.l b/dimension/lexer.l index 90c4807..9dec45d 100644 --- a/dimension/lexer.l +++ b/dimension/lexer.l @@ -273,6 +273,30 @@ unsigned long wchar; %% +void * +dmnsn_yy_make_buffer(FILE *file, void *scanner) +{ + return dmnsn_yy_create_buffer(file, YY_BUF_SIZE, scanner); +} + +void * +dmnsn_yy_make_string_buffer(const char *str, void *scanner) +{ + return dmnsn_yy_scan_string(str, scanner); +} + +void +dmnsn_yy_push_buffer(void *buffer, void *scanner) +{ + dmnsn_yypush_buffer_state(buffer, scanner); +} + +void +dmnsn_yy_pop_buffer(void *scanner) +{ + dmnsn_yypop_buffer_state(scanner); +} + dmnsn_array * dmnsn_tokenize(FILE *file, const char *filename) { |