[antlr-interest] [ST] Difference between <foo> and $foo$

Cristian Peraferrer corellian.c at gmail.com
Tue Mar 4 10:02:14 PST 2008


Hi,

I've found that in some places is used <foo> and in some others $foo$  
is used, let's see an example:

xmlheader(v,e) ::= <<
\<?xml version="<v>" encoding="<e>" ?\>
 >>

and now the other way:

xmlheader(v,e) ::= <<
\<?xml version="$v$" encoding="$e$" ?\>
 >>

So what's the difference? for what it is used each form?

Regards,

Cris.

-- 
GPG Key-ID: 0x564903FA - Jabber ID: corellian at swissjabber.ch



More information about the antlr-interest mailing list