[antlr-interest] grammar overlapping in a rule

Jigang (Robert) Sun sunjigang1965 at yahoo.com.cn
Tue Oct 17 15:11:07 PDT 2006


The following garmmar is extracted from Clean Language Report version 2.1, p113, p116 and p117.
You can see FunctionName and ConstructorName overlapping.

Operator = FunctionName 
          | ConstructorName

FunctionName = LowerCaseId | UpperCaseId | FunnyId
ConstructorName = UpperCaseId | FunnyId

LowerCaseId = LowerCaseChar~{IdChar}
UpperCaseId = UpperCaseChar~{IdChar}
FunnyId = {SpecialChar}+

Any ideas?

Thanks.
Jigang


	

	
		
___________________________________________________________ 
Mp3疯狂搜-新歌热歌高速下
http://music.yahoo.com.cn/?source=mail_mailbox_footer


More information about the antlr-interest mailing list