All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.antlr.codegen.templates.Ruby.ASTTreeParser.stg Maven / Gradle / Ivy

There is a newer version: 3.5.3
Show newest version
gatedAction(block) ::= <<

if 
  
end



>>

ruleDeclarations() ::= <<

_last = _first_0 = nil<\n>
>>

noRewrite(rewriteBlockLevel, treeLevel) ::= <<

return_value.tree = _first_0
if @adaptor.parent( return_value.tree ) && @adaptor.flat_list?( @adaptor.parent( return_value.tree ) )
  return_value.tree = @adaptor.parent( return_value.tree )
end

})>
>>

tree(root, actionsAfterRoot, children, nullableChildList,
     enclosingTreeLevel, treeLevel) ::= <<
_save_last_ = _last = @input.look
_first_ = nil

root_ = @adaptor.create_flat_list<\n>




_first_ ||= .tree<\n>

_first_ ||= <\n>

})>



if @input.peek == DOWN
  match( DOWN, nil )
  
  match( UP, nil )
end<\n>

match( DOWN, nil )

match( UP, nil )<\n>


@adaptor.add_child( root_, root_ )<\n>

_last = _save_last_

>>

tokenRefBang(token,label,elementIndex,terminalOptions) ::= <<
_last = @input.look

>>

tokenRef(token,label,elementIndex,terminalOptions) ::= <<
_last = @input.look



tree_for_




© 2015 - 2024 Weber Informatics LLC | Privacy Policy