Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

Notes...

"grammar A;;" says

error(17): A;.g:1:10: extraneous input ';' expecting EOF

in v3:

CodeGenerator.generateLocalFOLLOW():

if ( follow.member(Label.EOF) ) {
	// TODO: can we just remove?  Seems needed here:
	// compilation_unit : global_statement* EOF
	// Actually i guess we resync to EOF regardless
	follow.remove(Label.EOF);
}

I think we do need EOF. dang. I'm running into an error recovery set that doesn't have EOF when it's needed.

Havng trouble figuring out what "exact" parameter does in combineFollows() in runtime.
it seems to only add sets from above on stack if EOR is in set i. When it sees a set w/o EOR, it stops adding. Why would we ever want them all? Maybe no viable alt instead of mismatched token?

  • No labels