Changes between Version 3 and Version 4 of LexicalAnalysis
- Timestamp:
- Oct 11, 2013, 1:12:49 PM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
LexicalAnalysis
v3 v4 64 64 }}} 65 65 66 The output of "RE2re2c.py" is re2c like file and all strings from text file is transformed into Unicode code point format. If lexical rule contains signs ".*" in RE than it is replaced by special macro STRING. The STRING macro is specified as follows: {{{STRING = [^\t\n\r\0]*}}} '''This is only special macro and user is not allowed to specified macro with name STRING.'''66 The output of "RE2re2c.py" is re2c like file and all strings from text file is transformed into Unicode code point format. If lexical rule contains signs ".*" in RE than it is replaced by special macro STRING. The STRING macro is specified as follows: {{{STRING = [^\t\n\r\0]*}}}. '''This is only special macro and user is not allowed to specified macro with name STRING.''' 67 67 68 68 In tag regular expression part sign ".*" s replaced with STING or if there are some strings like "k1" then sign is replaced by [^\t\n\r\0k]*. This modification makes program faster when the re2c file is transformed in final automata written in C-code.