[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

VIM stylesheet / AST question

Hi All,

Attached is a VIM stylesheet which supports the new AST grammar.

One other question: I am wondering if the following should be legal:

exp_list -> exp+ = exp exp_list_tail? -> () ;

Is there any difference between the + and * operators in a transformation? Also, is there any impact if a term with a? is referenced (but it might not actually be used). e.g.

production -> ast_node = term1 term2? term3 -> New ast_node(term1, term2);


Thanks again,

Roger Keays

Attachment: sablecc.vim
Description: Binary data

ninthave.net p: +61 7 3870 8494
Web Hosting m: +61 405 048 371
Web Design w: http://www.ninthave.net
Programming e: r.keays@ninthave.net
http://groups.ninthave.net Complete hosting solution for communities
http://billshare.ninthave.net The easy way to manage your bills!
http://pic.ninthave.net THE C compiler for PIC micros
http://clubs.sport.uq.edu.au/uqtrifit UQ Triathlon Club
http://groups.msn.com/SunshineCoastCycling Sunshine Coast Cycling Club
http://groups.ninthave.net/dance UQ Dance Club
http://www.cashflowclub.org.au UQ Cashflow Club
http://groups.msn.com/uQRomanceLanguagesClub UQ Romance Languages Club