// load string
result = new AviatorString((String) lookhead.getValue(null));
break;
case Pattern:
// load pattern
result = new AviatorPattern((String) lookhead.getValue(null));
break;
case Variable:
if (lookhead == Variable.TRUE) {
result = AviatorBoolean.TRUE;
}
else if (lookhead == Variable.FALSE) {
result = AviatorBoolean.FALSE;
}
else if (lookhead == Variable.NIL) {
result = AviatorNil.NIL;
}
break;
case Char:
result = new AviatorPattern(String.valueOf(lookhead.getValue(null)));
break;
}
return result;
}