Hi, I have created a lexer and a parser for a rather simple DSL. A snippet
of this DSL that I am using for testing my lexer/parser is attached
(snippet.txt).
However, when it comes to evaluating the AST generated by my parser, my tree
grammar does not work properly. To be more specific, it stops parsing at
rule:

body : ^(MUTANTSNODE mutant*)
;

I have created grammars for lexers and parsers before, but tree grammars are
pretty new to my. Thus, any help on how to fix this problem (I am sure it
must be something quite simple, I do not have a clue though) would be
appreciated.
Attached you will find both grammars and the foregoing snippet that I am
using for testing purposes.

I can provide more details if needed.
For your time, thanks.

Regards,
Vinicius Durelli
[original] {
     id := "int HelloMaxine.fooBarFirstOne(int, float) "
     [before:1] {
          snapshot := {}
     }
     [before:2] {
          snapshot := {
          "40";
          "0";
        }
     }
     [after:1] {
          snapshot := {}
     }
     [after:2] {
          snapshot := {
          "40";
          "4657.3";
        }
     }
     [mutant] {
        id := "int HelloMaxine.fooBar$Mutant_2(int a, float f) "
                snapshot <- {
                  "4";
                  "4657.3";
                }
                state <- DEAD("return value different from the original 
method's")
     }
     [mutant] {
        id := "int HelloMaxine.fooBar$Mutant_3(int a, float f) "
                snapshot <- {
                  "40";
                  "4657.3";
                }
                state <- LIVE
     }
     [mutant] {
        id := "int HelloMaxine.fooBar$Mutant_4(int a, float f) "
                snapshot <- {
                  "40";
                  "4657.3";
                }
                state <- EQUIV
     }
}
[original] {
     id:="int HelloMaxine.fooBarEmpty2(int, float) "    
}

Attachment: Eval.g
Description: Binary data

Attachment: Project.g
Description: Binary data

List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address
-- 
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.

Reply via email to