Having the rule specified below, there's no AST-rewrite code generated for
sub-alternatives for the third alternative ( preceeded by IsObject semantic
predicate ). Was that an intent? Or I am just missing something?

name
    :
        { IsFunction( input.LT( 1 ).Text ) }?=>    function_call |
        { IsType( input.LT( 1 ).Text ) }?=>        type_conversion |
        { IsObject( input.LT( 1 ).Text ) }?=>    ( options{ backtrack =
true; } :
                                                    slice |
                                                    indexed_component ->
indexed_component |
                                                    explicit_dereference |
                                                    selected_component |
                                                    direct_name -> ^( OBJECT
direct_name )
                                                ) |
                                                attribute_reference |
                                                CHARACTER_LITERAL |
        // erroneous alternatives
        ( options{ backtrack = true; } :
            type_conversion |         // conversion to an unknown type or
calling unknown function or indexing unknown object.
            indexed_component |        // indexing unknown object or calling
unknown function.
            slice |                    // slicing unknown object.
            explicit_dereference |    // explicitly referencing unknown
object.
            selected_component |    // selecting component of an unknown
object.
            function_call            // calling unknown function or using
unknown object
        )
    ;

Thanks in advance.

--

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