Changes in src/Parser/lex.ll [4439008:8551b859]
- File:
-
- 1 edited
-
src/Parser/lex.ll (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/lex.ll
r4439008 r8551b859 10 10 * Created On : Sat Sep 22 08:58:10 2001 11 11 * Last Modified By : Peter A. Buhr 12 * Last Modified On : Wed Jun 20 09:08:28201813 * Update Count : 6 8212 * Last Modified On : Thu Jun 7 08:27:40 2018 13 * Update Count : 679 14 14 */ 15 15 … … 25 25 //**************************** Includes and Defines **************************** 26 26 27 // trigger before each matching rule's action28 #define YY_USER_ACTION \29 yylloc.first_line = yylineno; \30 yylloc.first_column = column; \31 column += yyleng; \32 yylloc.last_column = column; \33 yylloc.last_line = yylineno; \34 yylloc.filename = yyfilename ? yyfilename : "";35 27 unsigned int column = 0; // position of the end of the last token parsed 28 #define YY_USER_ACTION yylloc.first_line = yylineno; yylloc.first_column = column; column += yyleng; yylloc.last_column = column; yylloc.last_line = yylineno; yylloc.filename = yyfilename ? yyfilename : ""; // trigger before each matching rule's action 36 29 37 30 #include <string> … … 56 49 #define NUMERIC_RETURN(x) rm_underscore(); RETURN_VAL( x ) // numeric constant 57 50 #define KEYWORD_RETURN(x) RETURN_CHAR( x ) // keyword 58 #define QKEYWORD_RETURN(x) RETURN_VAL(x);// quasi-keyword51 #define QKEYWORD_RETURN(x) typedefTable.isKind( yytext ); RETURN_VAL(x); // quasi-keyword 59 52 #define IDENTIFIER_RETURN() RETURN_VAL( typedefTable.isKind( yytext ) ) 60 53 #define ATTRIBUTE_RETURN() RETURN_VAL( ATTR_IDENTIFIER )
Note:
See TracChangeset
for help on using the changeset viewer.