Skip to content

Instantly share code, notes, and snippets.

@ErisianArchitect
ErisianArchitect / tokenizer.txt
Created October 22, 2011 19:20
Read config
//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 == '#')
{
@PJensen
PJensen / Scruit.py
Created July 7, 2011 16:46
The Scruit compiler.
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 ')'