Changeset 15 for trunk/src/bitlex.h


Ignore:
Timestamp:
Jan 11, 2008, 6:16:25 AM (11 years ago)
Author:
cameron
Message:

Bytespace scanning in XML declarations; various updates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bitlex.h

    r14 r15  
    4646
    4747enum lexical_item {
    48   MarkupStart, CD_End_check, Hyphen, QMark, DQuote, SQuote,
    49   NonWS, NameFollow};
     48  minLexicalItem = 0,
     49  MarkupStart = minLexicalItem, CD_End_check, Hyphen, QMark,
     50  DQuote, SQuote, NonWS, NameFollow,
     51  maxLexicalItem = NameFollow};
    5052
    51 const int LexicalItemCount = NameFollow + 1;
     53const int LexicalItemCount = maxLexicalItem + 1;
    5254
    5355/* The principal role of the lexical analyzer is to prepare
     
    7072   
    7173*/
    72 const int LOOKAHEAD_POSITIONS = 8;
     74const int LOOKAHEAD_POSITIONS = 12;
    7375const int LOOKAHEAD_PACKS = (LOOKAHEAD_POSITIONS+PACKSIZE-1)/PACKSIZE;
    7476const int SENTINEL_BLOCKS = 1;
     
    7779        BytePack x8data[BUFFER_PACKS+LOOKAHEAD_PACKS];
    7880        BitBlock item_stream[LexicalItemCount][BUFFER_BLOCKS+SENTINEL_BLOCKS];
     81};
     82
     83struct BitBlockGroup {
     84  BitBlock bit[8];
    7985};
    8086
     
    9399protected:
    94100   XML_Buffer *xml_buf;
     101   BitBlockGroup *(bit_group[BUFFER_BLOCKS+1]);
    95102   ParallelStreamSet *parsing_engine_data;
    96103   void ComputeLexicalItemStreams(int newblocks);
Note: See TracChangeset for help on using the changeset viewer.