Commit graph

14 commits

Author SHA1 Message Date
Dimitri van Heesch
4a4fcdf793
Added missing debug flags for scanner that were made reentrant 2019-12-05 21:55:22 +01:00
Dimitri van Heesch
3bda58a7b7
Split language parser into "outline parser" and "code parser" 2019-12-03 20:54:36 +01:00
Dimitri van Heesch
26f6f1aec1
Remove bogus flex code 2019-11-18 20:37:37 +01:00
albert-github
aca16ea3b4 Consistent way to show scanner state
Create a consistent way to display the state mnemonics of the different scanners (analogous to the fortranscanner.l)
Use an automatic procedure to generate the routine with the translation of the states to a string.
2019-09-05 14:04:14 +02:00
Dimitri van Heesch
2b0cffb6a7
Fix for printlex after destroying the scanner context 2019-05-28 22:01:06 +02:00
Adrian Negreanu
2c8eec16b0 enable debug for re-entrant lexers 2019-05-22 14:55:26 +03:00
albert-github
03994c79c8 Missing debug statements sqlcode and xmlcode lexers
The messages for `doxygen -d lex` were missing in case of the sqlcode.l and xmlcode.l
2019-05-20 13:27:31 +02:00
Dimitri van Heesch
723b842ca1
Fixed memory leak in reentrant lexers 2019-05-12 14:23:55 +02:00
Adrian Negreanu
52e32ead5d
sqlcode.l: generate a reentrant scanner
* put the global variables in struct sqlcodeYY_state.

 * globally define yyscanner and sqlcode_extra. these two should be per-thread.

 * add a new yyscan_t function parameter when these functions are referenced:
    - yyin, yyout, yyextra, yyleng, yytext, yylineno, yycolumn, and yy_flex_debug.
    - the macros BEGIN, YY_START, YYSTATE, yymore, unput, and yyless
    - the functions that deal with input buffers: yyrestart
    - others: yy_switch_to_buffer, yy_create_buffer, yy_delete_buffer,
                yy_flush_buffer, yypush_buffer_state, yypop_buffer_state,
                yy_scan_buffer, yy_scan_string, and yy_scan_bytes

 * add a new yyscan_t function parameter when globals are referenced,
   to get the yyextra out of the yyscanner.
2019-05-04 17:03:34 +02:00
Dimitri van Heesch
6216208b0a
Improved const correctness and added support for inline namespaces 2019-04-21 16:01:25 +02:00
Dimitri van Heesch
960bae7191
Refactored Definition and derived classes such that they are abstract interfaces 2019-02-28 20:55:47 +01:00
albert-github
e596bf3f21 Double id for tooltips in XHTML Possible.
The tooltips (XHTML) should not be displayed per code fragment but for the entire (output) file as otherwise tooltips might be added multiple times resulting in double IDs.
2019-01-18 10:59:56 +01:00
Artur Kink
6a85240e65 Add NVARCHAR as a SQL type 2016-11-22 11:55:25 -05:00
Artur Kink
adf4a90340 Add sql syntax highlighting to code blocks 2016-11-21 21:08:01 -05:00