Changes between Version 6 and Version 7 of LexicalAnalysis


Ignore:
Timestamp:
Oct 21, 2013, 4:24:42 PM (11 years ago)
Author:
xmedved1
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • LexicalAnalysis

    v6 v7  
    6666The 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.'''
    6767
    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.
     68In 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.
    6969
    7070The command to generate C-code from re2c file is: {{{re2c -isuF -o analyze_lex.c analyze_lex.re2c}}}. In SYNT system Makefile makes all work.