parser.cpp File Reference

#include "parser.ih"
#include <iostream>
#include <sstream>
#include <string>
#include <map>
#include <iomanip>

Include dependency graph for parser.cpp:

Go to the source code of this file.

Typedefs

typedef std::map< int, char
const * > 
SMap
typedef SMap::value_type SMapVal

Enumerations

enum  { STACK_EXPANSION = 5 }
enum  ReservedTokens { PARSE_ACCEPT = 0, _UNDETERMINED_ = -2, _EOF_ = -1, _error_ = 256 }
enum  StateType {
  NORMAL, ERR_ITEM, REQ_TOKEN, ERR_REQ,
  DEF_RED, ERR_DEF, REQ_DEF, ERR_REQ_DEF
}

Functions

SMap s_symbol (s_symArr, s_symArr+sizeof(s_symArr)/sizeof(SMapVal))

Variables

char const author [] = "Frank B. Brokken (f.b.brokken@rug.nl)"
PI__ const s_productionInfo []
SR__ const s_0 []
SR__ const s_1 []
SR__ const s_2 []
SR__ const s_3 []
SR__ const s_4 []
SR__ const s_5 []
SR__ const s_6 []
SR__ const s_7 []
SR__ const s_8 []
SR__ const s_9 []
SR__ const s_10 []
SR__ const s_11 []
SR__ const s_12 []
SR__ const s_13 []
SR__ const s_14 []
SR__ const s_15 []
SR__ const s_16 []
SR__ const s_17 []
SR__ const s_18 []
SR__ const s_19 []
SR__ const * s_state []
SMapVal s_symArr []


Typedef Documentation

typedef std::map<int, char const *> SMap [static]

Definition at line 294 of file parser.cpp.

typedef SMap::value_type SMapVal [static]

Definition at line 295 of file parser.cpp.


Enumeration Type Documentation

anonymous enum

Enumerator:
STACK_EXPANSION 

Definition at line 67 of file parser.cpp.

enum ReservedTokens

Enumerator:
PARSE_ACCEPT 
_UNDETERMINED_ 
_EOF_ 
_error_ 

Definition at line 73 of file parser.cpp.

enum StateType

Enumerator:
NORMAL 
ERR_ITEM 
REQ_TOKEN 
ERR_REQ 
DEF_RED 
ERR_DEF 
REQ_DEF 
ERR_REQ_DEF 

Definition at line 80 of file parser.cpp.


Function Documentation

SMap @495::s_symbol ( s_symArr  ,
s_symArr sizeof(s_symArr)/sizeof(SMapVal) 
) [static]


Variable Documentation

int _field_1_

Definition at line 102 of file parser.cpp.

int _field_2_

Definition at line 109 of file parser.cpp.

char const author[] = "Frank B. Brokken (f.b.brokken@rug.nl)" [static]

Definition at line 65 of file parser.cpp.

int d_action

Definition at line 112 of file parser.cpp.

size_t d_errorState

Definition at line 114 of file parser.cpp.

int d_lastIdx

Definition at line 111 of file parser.cpp.

size_t d_nonTerm

Definition at line 93 of file parser.cpp.

size_t d_size

Definition at line 95 of file parser.cpp.

int d_token

Definition at line 105 of file parser.cpp.

int d_type

Definition at line 104 of file parser.cpp.

Referenced by Parser::parse().

SR__ const s_0[] [static]

Initial value:

{
    { { REQ_TOKEN}, { 6} },               
    { {       260}, { 1} }, 
    { {       261}, { 2} }, 
    { {       262}, { 3} }, 
    { {       263}, { 4} }, 
    { {       259}, { 5} }, 
    { {         0}, { 0} },               
}

Definition at line 141 of file parser.cpp.

SR__ const s_1[] [static]

Initial value:

{
    { { REQ_TOKEN}, {            2} }, 
    { {     _EOF_}, { PARSE_ACCEPT} }, 
    { {         0}, {            0} }, 
}

Definition at line 152 of file parser.cpp.

SR__ const s_10[] [static]

Initial value:

{
    { { DEF_RED}, {  1} }, 
    { {       0}, { -8} }, 
}

Definition at line 222 of file parser.cpp.

SR__ const s_11[] [static]

Initial value:

{
    { { DEF_RED}, {  1} }, 
    { {       0}, { -9} }, 
}

Definition at line 228 of file parser.cpp.

SR__ const s_12[] [static]

Initial value:

{
    { { REQ_TOKEN}, {  2} },       
    { {        40}, { 16} }, 
    { {         0}, {  0} },       
}

Definition at line 234 of file parser.cpp.

SR__ const s_13[] [static]

Initial value:

{
    { { REQ_TOKEN}, {  2} },            
    { {       259}, { 17} }, 
    { {         0}, {  0} },            
}

Definition at line 241 of file parser.cpp.

SR__ const s_14[] [static]

Initial value:

{
    { { DEF_RED}, {  1} }, 
    { {       0}, { -7} }, 
}

Definition at line 248 of file parser.cpp.

SR__ const s_15[] [static]

Initial value:

{
    { { DEF_RED}, {  1} }, 
    { {       0}, { -6} }, 
}

Definition at line 254 of file parser.cpp.

SR__ const s_16[] [static]

Initial value:

{
    { { DEF_RED}, {   2} },            
    { {     267}, {  18} }, 
    { {       0}, { -11} },            
}

Definition at line 260 of file parser.cpp.

SR__ const s_17[] [static]

Initial value:

{
    { { DEF_RED}, {  1} }, 
    { {       0}, { -5} }, 
}

Definition at line 267 of file parser.cpp.

SR__ const s_18[] [static]

Initial value:

{
    { { REQ_TOKEN}, {  2} },       
    { {        41}, { 19} }, 
    { {         0}, {  0} },       
}

Definition at line 273 of file parser.cpp.

SR__ const s_19[] [static]

Initial value:

{
    { { DEF_RED}, {   1} }, 
    { {       0}, { -10} }, 
}

Definition at line 280 of file parser.cpp.

SR__ const s_2[] [static]

Initial value:

{
    { { REQ_DEF}, {  4} },             
    { {     262}, {  6} }, 
    { {     263}, {  4} }, 
    { {     259}, {  5} }, 
    { {       0}, { -1} },             
}

Definition at line 159 of file parser.cpp.

SR__ const s_3[] [static]

Initial value:

{
    { { DEF_RED}, {  1} }, 
    { {       0}, { -2} }, 
}

Definition at line 168 of file parser.cpp.

SR__ const s_4[] [static]

Initial value:

{
    { { DEF_RED}, {  1} }, 
    { {       0}, { -4} }, 
}

Definition at line 174 of file parser.cpp.

SR__ const s_5[] [static]

Initial value:

{
    { { REQ_TOKEN}, { 2} },       
    { {       123}, { 7} }, 
    { {         0}, { 0} },       
}

Definition at line 180 of file parser.cpp.

SR__ const s_6[] [static]

Initial value:

{
    { { DEF_RED}, {  1} }, 
    { {       0}, { -3} }, 
}

Definition at line 187 of file parser.cpp.

SR__ const s_7[] [static]

Initial value:

{
    { { REQ_TOKEN}, {  6} },                  
    { {       264}, {  8} }, 
    { {       265}, {  9} }, 
    { {       257}, { 10} }, 
    { {       266}, { 11} }, 
    { {       258}, { 12} }, 
    { {         0}, {  0} },                  
}

Definition at line 193 of file parser.cpp.

SR__ const s_8[] [static]

Initial value:

{
    { { REQ_TOKEN}, {  6} },                  
    { {       125}, { 13} }, 
    { {       265}, { 14} }, 
    { {       257}, { 10} }, 
    { {       266}, { 11} }, 
    { {       258}, { 12} }, 
    { {         0}, {  0} },                  
}

Definition at line 204 of file parser.cpp.

SR__ const s_9[] [static]

Initial value:

{
    { { REQ_TOKEN}, {  2} },       
    { {        59}, { 15} }, 
    { {         0}, {  0} },       
}

Definition at line 215 of file parser.cpp.

PI__ const s_productionInfo[] [static]

Initial value:

 
{
     {0, 0}, 
     {260, 1}, 
     {261, 1}, 
     {261, 2}, 
     {262, 1}, 
     {263, 5}, 
     {264, 2}, 
     {264, 2}, 
     {265, 1}, 
     {265, 1}, 
     {266, 4}, 
     {267, 0}, 
     {268, 1}, 
}

Definition at line 121 of file parser.cpp.

Referenced by Parser::parse().

SR__ const* s_state[] [static]

Initial value:

Definition at line 288 of file parser.cpp.

SMapVal s_symArr[] [static]

Initial value:

{
    SMapVal(-2, "_UNDETERMINED_"),  
    SMapVal(-1, "_EOF_"),
    SMapVal(256, "_error_"),

    SMapVal(257, "MOVEUNIT"),
    SMapVal(258, "LOADMAP"),
    SMapVal(259, "TESTCASE"),
    SMapVal(260, "asctextfile"),
    SMapVal(261, "blocks"),
    SMapVal(262, "block"),
    SMapVal(263, "testblock"),
    SMapVal(264, "commands"),
    SMapVal(265, "command"),
    SMapVal(266, "loadmapcommand"),
    SMapVal(267, "filename"),
    SMapVal(268, "asctextfile_$"),
}

Definition at line 297 of file parser.cpp.


Generated on Mon May 21 01:40:58 2012 for Advanced Strategic Command by  doxygen 1.5.1