This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os, sys, string, random | |
COMPILER_ERRORS = """ | |
Cannot have multiple default property/method in a Class | |
Cannot use parentheses when calling a Sub | |
Class initialize or terminate do not have arguments | |
'Default' specification can only be on Property Get | |
'Default' specification must also specify 'Public' | |
Expected '(' | |
Expected ')' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Also note, this is pseudo-code, when passing the index to a function, you want to pass it as a reference so that you can modify the index. | |
void Tokenize(string src) | |
{ | |
int ind = 0; | |
string configName = empty; | |
while(ind < src.Length) | |
{ | |
char c = src[ind]; | |
if(c == '#') | |
{ |