[antlr-interest] v3: definition of fragment

Paul Shaffer antlr1 at cyberplasm.com
Wed Nov 22 10:56:50 PST 2006


 > v3: What is the definition of fragment? Reason for this qualifier or whatever you call it?

Found it. I didn't see this topic in the wiki the first time through.

  Five minute introduction to ANTLR 3
http://www.antlr.org/wiki/display/ANTLR3/Five+minute+introduction+to+ANTLR+3

fragment  in front of a lexer rule instructs ANTLR that the rule is only used as part of another 
lexer rule (i.e. it only builds a fragment of a recognized token)


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20061122/677332fe/attachment.html 


More information about the antlr-interest mailing list