[antlr-interest] C# Grammar question

Johannes Luber jaluber at gmx.de
Fri Mar 2 16:06:28 PST 2007


Hello,

I've been reading the Ecma PDF and discovered following two rules (not
in ANTLR format):

input-elements::
	input-element
	input-elements input-element

input-element::
	whitespace
	comment
	token

I'm not sure if I interpret them correctly. If I have the following
fragment "1/*23*/4", does C# it view - leaving comments aside - as "1 4"
(which I suspect to the right one)? Or is it "14" like in C++?

Best regards,
Johannes Luber


More information about the antlr-interest mailing list