Hi, I think there is a bug with the compiler for @header when using
Actionscript. I created this simple grammar file and the result with the
packages is not right if I use @header, but works fine if I use @package

This is the grammar file that works:

================
grammar TestIt;

options {
    language = ActionScript;
    output = AST;
}

@package { com.there.grammar }

emptyRule:  ;
================

package com.there.grammar  {
    import org.antlr.runtime.*;

=================

This is the one that does not work is when I use @header



=====================
grammar TestIt;

options {
    language = ActionScript;
    output = AST;
}

@header { com.there.grammar }

emptyRule:  ;

=====================

The problem is the package header is incorrect. It swaps the "[" and the
package path.

package {
     com.there.grammar
    import org.antlr.runtime.*;

Is this a bug?

Thanks
Des

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en
-~----------~----~----~----~------~----~------~--~---

List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

Reply via email to