This commit is contained in:
kudzu_cp 2012-06-14 18:13:19 +00:00
parent 1ae736efa5
commit fdecdc68e9
2 changed files with 17 additions and 1 deletions

View file

@ -103,6 +103,19 @@ namespace Cosmos.Compiler.XSharp {
protected enum CharType { WhiteSpace, Identifier, Symbol };
protected void Parse() {
ParseText();
Parse2();
mTokens = new TokenList(mTokensTemp);
}
// Rescan token patterns
protected void Parse2() {
for (int i = 0; i < mTokensTemp.Count; i++) {
}
}
// Initial Parse to convert text to tokens
protected void ParseText() {
char xLastChar = ' ';
CharType xLastCharType = CharType.WhiteSpace;
char xChar;
@ -131,13 +144,13 @@ namespace Cosmos.Compiler.XSharp {
if (mStart < mData.Length) {
NewToken(ref i);
}
mTokens = new TokenList(mTokensTemp);
}
public Parser(string aData, bool aIncludeWhiteSpace) {
mData = aData;
mIncludeWhiteSpace = aIncludeWhiteSpace;
mAllWhitespace = true;
Parse();
}
}

View file

@ -38,6 +38,9 @@ InterruptHandler TracerEntry {
PushAll
# Temp Test
EAX = $FF
# Save current ESP so we can look at the results of PushAll later
PushAllPtr = ESP