Lines Matching refs:scope

252 <rule.ruleDescriptor:{ruleDescriptor | <returnScopeInterface(scope=ruleDescriptor.returnScope)>}>}>
306 <returnScopeImplementation(scope=ruleDescriptor.returnScope)>}>
562 <scopes:{it | <if(it.isDynamicGlobalScope)><globalAttributeScopeInterface(scope=it)><endif>}>
565 <rule.ruleDescriptor:{ ruleDescriptor | <ruleAttributeScopeInterface(scope=ruleDescriptor.ruleScope)>}>}>
567 <rules:{rule |<rule.ruleDescriptor:{ ruleDescriptor | <returnScopeInterface(scope=ruleDescriptor.returnScope)>}>}>
572 <rules:{rule | <rule.ruleDescriptor.ruleScope:ruleAttributeScopeDecl(scope=rule.ruleDescriptor.ruleScope)>}>
574 <scopes:{it | <if(it.isDynamicGlobalScope)><globalAttributeScopeMemVar(scope=it)><endif>}><\n>
670 <scopes:{it | <if(it.isDynamicGlobalScope)><globalAttributeScopeImplementation(scope=it)><endif>}>
674 <rule.ruleDescriptor:{ ruleDescriptor | <ruleAttributeScopeImplementation(scope=ruleDescriptor.ruleScope)>}>}>
677 <rules:{rule | <rule.ruleDescriptor:{ ruleDescriptor | <returnScopeImplementation(scope=ruleDescriptor.returnScope)>}>}>
721 <scopes:{it | <if(it.isDynamicGlobalScope)><globalAttributeScopeInit(scope=it)><endif>}>
734 <scopes:{it | <if(it.isDynamicGlobalScope)><globalAttributeScopeDealloc(scope=it)><endif>}>
974 - (void) m<ruleName><if(ruleDescriptor.parameterScope)><ruleDescriptor.parameterScope:parameterScope(scope=it)><endif>
1279 ruleRef(rule,label,elementIndex,args,scope) ::= <<
1282 <if(label)><label> = <endif>[self <if(scope)><scope:delegateName()>.<endif><rule.name><if(args)>:<first(args)> <rest(args):{ a | arg<i>:<rest(args)>}; separator=" "><endif>];<\n>
1288 ruleRefAndListLabel(rule,label,elementIndex,args,scope) ::= <<
1299 lexerRuleRef(rule,label,args,elementIndex,scope) ::= <<
1306 [self <if(scope)><scope:delegateName()>.<endif>m<rule.name><if(args)>:<args; separator=" :"><endif>]; <checkRuleBacktrackFailure()><\n>
1311 lexerRuleRefAndListLabel(rule,label,args,elementIndex,scope) ::= <<
1664 memVars(scope) ::= << <scope.attributes:{a|<a.type> <a.name>;<\n>}; separator="\n"> >>
1666 properties(scope) ::= <<
1667 <scope.attributes:{a|@property (assign, getter=get<a.name>, setter=set<a.name>:) <a.type> <a.name>;<\n>}; separator="\n">
1670 methodsDecl(scope) ::= <<
1671 <scope.attributes:{a|- (<a.type>)get<a.name>;<\n>- (void)set<a.name>:(<a.type>)aVal;<\n>}; separator="\n">
1674 synthesize(scope) ::= << <scope.attributes:{a|@synthesize <a.name>;}; separator="\n"> >>
1676 methods(scope) ::= <%
1677 <scope.attributes:{a|
1682 globalAttributeScopeInterface(scope) ::= <%
1684 @interface <scope.name>_Scope : ANTLRSymbolsScope {<\n>
1685 <if(scope.attributes)>
1686 <memVars(scope)>
1689 <if(scope.attributes)>
1691 <properties(scope)>
1695 + (<scope.name>_Scope *)new<scope.name>_Scope;<\n>
1697 <if(scope.attributes)>
1699 <methodsDecl(scope)>
1702 @end /* end of <scope.name>_Scope interface */<\n>
1705 globalAttributeScopeMemVar(scope) ::= <%
1707 ANTLRSymbolStack *<scope.name>_stack;<\n>
1708 <scope.name>_Scope *<scope.name>_scope;<\n>
1711 globalAttributeScopeImplementation(scope) ::= <%
1712 @implementation <scope.name>_Scope /* globalAttributeScopeImplementation */<\n>
1713 <if(scope.attributes)>
1715 <synthesize(scope)><\n>
1718 + (<scope.name>_Scope *)new<scope.name>_Scope<\n>
1720 return [[<scope.name>_Scope alloc] init];<\n>
1729 <if(scope.attributes)>
1731 <methods(scope)><\n>
1734 @end /* end of <scope.name>_Scope implementation */<\n><\n>
1737 globalAttributeScopeInit(scope) ::= <<
1739 <scope.name>_scope = [<scope.name>_Scope new<scope.name>_Scope];<\n>
1740 <scope.name>_stack = [ANTLRSymbolStack newANTLRSymbolStackWithLen:30];<\n>
1743 globalAttributeScopeDealloc(scope) ::= << [<scope.name>_stack release];<\n> >>
1745 globalAttributeScope(scope) ::= << static <scope.name>_stack;<\n> >>
1747 ruleAttributeScopeMemVar(scope) ::= <%
1749 <if(scope.attributes)>
1750 <scope.name>_Scope *<scope.name>_scope; /* ObjC ruleAttributeScopeMemVar */<\n>
1754 ruleAttributeScopeInterface(scope) ::= <%
1755 <if(scope.attributes)>
1757 @interface <scope.name>_Scope : ANTLRSymbolsScope {<\n>
1758 <memVars(scope)><\n>
1762 <properties(scope)><\n>
1764 + (<scope.name>_Scope *)new<scope.name>_Scope;<\n>
1766 <methodsDecl(scope)><\n>
1771 ruleAttributeScopeImplementation(scope) ::= <%
1772 <if(scope.attributes)>
1773 @implementation <scope.name>_Scope /* start of ruleAttributeScopeImplementation */<\n>
1774 <synthesize(scope)><\n>
1776 + (<scope.name>_Scope *)new<scope.name>_Scope<\n>
1778 return [[<scope.name>_Scope alloc] init];<\n>
1787 /* start of <scope.name>_Scope get and set functions */<\n>
1788 <methods(scope)><\n>
1789 /* End of <scope.name>_Scope get and set functions */<\n>
1794 ruleAttributeScopeInit(scope) ::= <%
1796 <scope.name>_scope = [<scope.name>_Scope new<scope.name>_Scope];<\n>
1797 <scope.name>_stack = [ANTLRSymbolStack newANTLRSymbolStackWithLen:30];<\n>
1800 ruleAttributeScopeDealloc(scope) ::= <% [<scope.name>_Scope release];<\n> %>
1802 ruleAttributeScope(scope) ::= <%
1803 <if(scope.attributes)>
1805 static ANTLRSymbolStack *<scope.name>_stack;<\n>
1809 ruleAttributeScopeDecl(scope) ::= <%
1811 <if(scope.attributes)>
1812 <scope.name>_Scope *<scope.name>_scope;<\n>
1859 returnScopeInterface(scope) ::= <<
1864 <if(scope.attributes)>
1865 <memVars(scope)><\n>
1870 <if(scope.attributes)>
1871 <properties(scope)><\n>
1877 <if(scope.attributes)>
1879 <methodsDecl(scope)><\n>
1885 returnScopeImplementation(scope) ::= <%
1889 <if(scope.attributes)>
1890 <synthesize(scope)><\n>
1904 <if(scope.attributes)>
1906 <methods(scope)><\n>
1915 parameterScope(scope) ::= <<
1916 <! <scope.attributes:{it | :(<it.type>)<it.name>}; separator=" "> !>
1917 <first(scope.attributes):{ a | :(<a.type>)<a.name>}> <rest(scope.attributes):{ a | arg<i>:(<a.type>)<a.name> }; separator=" ">
1926 scopeAttributeRef(scope,attr,index,negIndex) ::= <%
1928 ([((<scope>_Scope *)[<scope>_stack objectAtIndex:[<scope>_stack size]-<negIndex>-1)]).<attr.name>
1931 ((<scope>_Scope *)[<scope>_stack objectAtIndex:<index>]).<attr.name>
1933 ((<scope>_Scope *)[<scope>_stack peek]).<attr.name>
1938 scopeSetAttributeRef(scope,attr,expr,index,negIndex) ::= <%
1941 ((<scope>_Scope *)[<scope>_stack objectAtIndex:([<scope>_stack size]-<negIndex>-1)]).<attr.name> = <expr>;
1944 ((<scope>_Scope *)[<scope>_stack objectAtIndex:<index>]).<attr.name> = <expr>;
1946 ((<scope>_Scope *)[<scope>_stack peek]).<attr.name> = <expr>;
1954 ((<scope>_Scope *)[<scope>_stack objectAtIndex:[<scope>_stack count]-<negIndex>-1]).<attr.name> = <expr>;
1957 ((<scope>_Scope *)[<scope>_stack objectAtIndex:<index>]).<attr.name> = <expr>;
1959 ((<scope>_Scope *)[<scope>_stack peek]).<attr.name> = <expr>;
1964 /** $x is either global scope or x is rule with dynamic scope; refers
1968 isolatedDynamicScopeRef(scope) ::= "<scope>_stack"
1971 ruleLabelRef(referencedRule,scope,attr) ::= <<
1973 (<scope>!=nil?<scope>.<attr.name>:<initValue(attr.type)>)
1975 <scope>
2005 tokenLabelPropertyRef_text(scope,attr) ::= "(<scope>!=nil?<scope>.text:nil)"
2006 tokenLabelPropertyRef_type(scope,attr) ::= "(<scope>!=nil?<scope>.type:0)"
2007 tokenLabelPropertyRef_line(scope,attr) ::= "(<scope>!=nil?<scope>.line:0)"
2008 tokenLabelPropertyRef_pos(scope,attr) ::= "(<scope>!=nil?<scope>.charPositionInLine:0)"
2009 tokenLabelPropertyRef_channel(scope,attr) ::= "(<scope>!=nil?<scope>.channel:0)"
2010 tokenLabelPropertyRef_index(scope,attr) ::= "(<scope>!=nil?[<scope> getTokenIndex]:0)"
2011 tokenLabelPropertyRef_tree(scope,attr) ::= "<scope>_tree"
2012 tokenLabelPropertyRef_int(scope,attr) ::= "(<scope>!=nil?[<scope>.text integerValue]:0)"
2014 ruleLabelPropertyRef_start(scope,attr) ::= "(<scope>!=nil?((<labelType> *)<scope>.start):nil)"
2015 ruleLabelPropertyRef_stop(scope,attr) ::= "(<scope>!=nil?((<labelType> *)<scope>.stopToken):nil)"
2016 ruleLabelPropertyRef_tree(scope,attr) ::= "(<scope>!=nil?((<ASTLabelType> *)<scope>.tree):nil)"
2017 ruleLabelPropertyRef_text(scope,attr) ::= <%
2019 (<scope>!=nil?[[input getTokenStream] toStringFromStart:[[input getTreeAdaptor] getTokenStartIndex:[<scope> getStart]]
2020 ToEnd:[[input getTreeAdaptor] getTokenStopIndex:[<scope> getStart]]]:0)
2022 (<scope>!=nil?([input toStringFromStart:[<scope> getStart] ToEnd:[<scope> getStop]]:0)
2025 ruleLabelPropertyRef_st(scope,attr) ::= "(<scope>!=nil?[<scope> st]:nil)"
2030 lexerRuleLabelPropertyRef_type(scope,attr) ::= "(<scope>!=nil?<scope>.type:0)"
2031 lexerRuleLabelPropertyRef_line(scope,attr) ::= "(<scope>!=nil?<scope>.line:0)"
2032 lexerRuleLabelPropertyRef_pos(scope,attr) ::= "(<scope>!=nil?<scope>.charPositionInLine:-1)"
2033 lexerRuleLabelPropertyRef_channel(scope,attr) ::= "(<scope>!=nil?<scope>.channel:0)"
2034 lexerRuleLabelPropertyRef_index(scope,attr) ::= "(<scope>!=nil?[<scope> getTokenIndex]:0)"
2035 lexerRuleLabelPropertyRef_text(scope,attr) ::= "(<scope>!=nil?<scope>.text:nil)"
2036 lexerRuleLabelPropertyRef_int(scope,attr) ::="(<scope>!=nil?[<scope>.text integerValue]:0)"
2039 rulePropertyRef_start(scope,attr) ::= "((<labelType> *)retval.start)"
2040 rulePropertyRef_stop(scope,attr) ::= "((<labelType> *)retval.stopToken)"
2041 rulePropertyRef_tree(scope,attr) ::= "((<ASTLabelType> *)retval.tree)"
2042 rulePropertyRef_text(scope,attr) ::= <<
2050 rulePropertyRef_st(scope,attr) ::= "retval.st"
2054 lexerRuleSetPropertyRef_text(scope,attr,expr) ::= "state.text = <expr>;"
2055 lexerRuleSetPropertyRef_type(scope,attr,expr) ::= "_type"
2056 lexerRuleSetPropertyRef_line(scope,attr,expr) ::= "state.tokenStartLine"
2057 lexerRuleSetPropertyRef_pos(scope,attr,expr) ::= "state.tokenStartCharPositionInLine"
2058 lexerRuleSetPropertyRef_index(scope,attr,expr) ::= "-1" /* undefined token index in lexer */
2059 lexerRuleSetPropertyRef_channel(scope,attr,expr) ::= "state.channel=<expr>;"
2060 lexerRuleSetPropertyRef_start(scope,attr,expr) ::= "state.tokenStartCharIndex"
2061 lexerRuleSetPropertyRef_stop(scope,attr,expr) ::= "(input.index-1)"
2064 lexerRulePropertyRef_text(scope,attr) ::= "self.text"
2065 lexerRulePropertyRef_type(scope,attr) ::= "state.type"
2066 lexerRulePropertyRef_line(scope,attr) ::= "state.tokenStartLine"
2067 lexerRulePropertyRef_pos(scope,attr) ::= "state.tokenStartCharPositionInLine"
2068 lexerRulePropertyRef_index(scope,attr) ::= "-1" // undefined token index in lexer
2069 lexerRulePropertyRef_channel(scope,attr) ::= "_channel"
2070 lexerRulePropertyRef_start(scope,attr) ::= "state.tokenStartCharIndex"
2071 lexerRulePropertyRef_stop(scope,attr) ::= "(input.index-1)"
2072 lexerRulePropertyRef_int(scope,attr) ::= "[<scope>.text integerValue]"
2076 ruleSetPropertyRef_tree(scope,attr,expr) ::= "retval.start =<expr>;"
2077 ruleSetPropertyRef_st(scope,attr,expr) ::= "retval.st =<expr>;" /* "<\n>#error StringTemplates are unsupported<\n>" */