architecture
ideas
parallelization with an event loop
parsing less
I don’t think we need to parse method bodies if we’re not emitting IR
basically, out of this code:
unrealscript function Hug(Hat_Player OtherPlayer) { PlayAnimation('Hugging'); // or something, idk UE3 }
parse only this:unrealscript function Hug(Hat_Player OtherPlayer) { /* token blob: PlayAnimation ( 'Hugging' ) ; */ }
omitting the entire method body and treating it as an opaque blob of tokens until we need to emit IR
I don’t think we need to parse the entire class if we only care about its superclass
basically, out of this code:
unrealscript class lqGoatBoy extends Hat_Player;
defaultproperties { Model = SkeletalMesh’lqFluffyZone.SkGoatBoy’; // etc }
only parse the following:
class lqGoatBoy extends HatPlayer;/* parser stops here, rest of text is ignored until needed */
and then only parse the rest if any class items are requested
lexing first