Ignore:
Timestamp:
Jan 2, 2011, 8:21:47 AM (9 years ago)
Author:
cameron
Message:

Move control streams into Lex class.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/parabix2/parabix2_pablo.py

    r775 r858  
    4545  error = 0
    4646
    47 class control ():
     47class Lex ():
    4848  x00_x1F = 0
    4949  CR = 0
     
    5252  SP = 0
    5353  CRLF = 0
    54  
    55 class lex ():
    5654  RefStart = 0
    5755  Semicolon = 0 
     
    186184        lex.NameScan = (lex.ASCII_name_char | bit[0]);
    187185        temp48 = (temp1 | bit[2]);
    188         control.x00_x1F = (~temp48);
     186        lex.x00_x1F = (~temp48);
    189187        temp49 = (bit[2] | bit[3]);
    190188        temp50 = (temp1 | temp49);
    191         control.CR = (temp20 &~ temp50);
    192         control.LF = (temp29 &~ temp50);
     189        lex.CR = (temp20 &~ temp50);
     190        lex.LF = (temp29 &~ temp50);
    193191        temp51 = (temp9 & temp19);
    194         control.HT = (temp51 &~ temp50);
    195         control.SP = (temp3 &~ temp36);
     192        lex.HT = (temp51 &~ temp50);
     193        lex.SP = (temp3 &~ temp36);
    196194        temp52 = (temp20 | temp29);
    197195        temp53 = (temp52 | temp51);
    198196        temp54 = (temp53 &~ temp50);
    199         lex.WS = (temp54 | control.SP);
     197        lex.WS = (temp54 | lex.SP);
    200198        temp55 = (bit[5] | bit[6]);
    201199        temp56 = (bit[4] & temp55);
     
    214212
    215213        # Check for illegal control characters
    216         xmlchar_error = (control.x00_x1F &~ lex.WS & EOF_mask)
     214        xmlchar_error = (lex.x00_x1F &~ lex.WS & EOF_mask)
    217215
    218216
Note: See TracChangeset for help on using the changeset viewer.