All pastes #753205 Raw Edit

Anonymous

public text v1 · immutable
#753205 ·published 2007-10-29 01:05 UTC
rendered paste body
Snippet 1:

beginning = position + 1;
while(1){
	position++;
	if(position == code.length)
		throw new Exception("Reached EOF while lexing; Quoted");
	if(code[position] == '"')
		queue = code[beginning..position];
		position++;
		goto makeOperator;
	if(code[position] == '\n')
		line++;
}

Snippet 2:

beginning = position + 1;
while(1){
	position++;
	if(position == code.length)
		throw new Exception("Reached EOF while lexing; Quoted");
	switch(code[position]){
		case '"':
			queue = code[beginning..position];
			position++;
			goto makeOperator;
		case '\n':
			line++;
		default:
			break;
	}
}