60 unsigned int curline[MAX_FILESTACK]; |
60 unsigned int curline[MAX_FILESTACK]; |
61 unsigned int curchar[MAX_FILESTACK]; |
61 unsigned int curchar[MAX_FILESTACK]; |
62 long savedpos[MAX_FILESTACK]; // filepointer cursor position |
62 long savedpos[MAX_FILESTACK]; // filepointer cursor position |
63 str token; |
63 str token; |
64 int commentmode; |
64 int commentmode; |
|
65 long prevpos; |
|
66 str prevtoken; |
65 |
67 |
66 // ==================================================================== |
68 // ==================================================================== |
67 // METHODS |
69 // METHODS |
68 // scriptreader.cxx: |
70 // scriptreader.cxx: |
69 ScriptReader (str path); |
71 ScriptReader (str path); |
71 void OpenFile (str path); |
73 void OpenFile (str path); |
72 void CloseFile (unsigned int u = MAX_FILESTACK); |
74 void CloseFile (unsigned int u = MAX_FILESTACK); |
73 char ReadChar (); |
75 char ReadChar (); |
74 char PeekChar (int offset = 0); |
76 char PeekChar (int offset = 0); |
75 bool Next (bool peek = false); |
77 bool Next (bool peek = false); |
76 str PeekNext (); |
78 void Prev (); |
|
79 str PeekNext (int offset = 0); |
77 void Seek (unsigned int n, int origin); |
80 void Seek (unsigned int n, int origin); |
78 void MustNext (const char* c = ""); |
81 void MustNext (const char* c = ""); |
79 void MustString (); |
82 void MustThis (const char* c); |
|
83 void MustString (bool gotquote = false); |
80 void MustNumber (); |
84 void MustNumber (); |
81 void MustBool (); |
85 void MustBool (); |
82 void MustValue (int type); |
86 void MustValue (int type); |
83 bool BoolValue (); |
87 bool BoolValue (); |
84 |
88 |
87 |
91 |
88 void FinalChecks (); |
92 void FinalChecks (); |
89 |
93 |
90 // parser.cxx: |
94 // parser.cxx: |
91 void BeginParse (ObjWriter* w); |
95 void BeginParse (ObjWriter* w); |
92 void ParseCommand (CommandDef* comm, ObjWriter* w); |
96 DataBuffer* ParseCommand (CommandDef* comm); |
|
97 DataBuffer* ParseExpression (int reqtype); |
|
98 int ParseOperator (); |
|
99 DataBuffer* ParseExprValue (int reqtype); |
93 |
100 |
94 // preprocessor.cxx: |
101 // preprocessor.cxx: |
95 void PreprocessDirectives (); |
102 void PreprocessDirectives (); |
96 void PreprocessMacros (); |
103 void PreprocessMacros (); |
97 |
104 |