/external/antlr/antlr-3.4/runtime/Ruby/lib/antlr3/modes/ |
ast-builder.rb | 17 @adaptor = options[ :adaptor ] ||= begin 18 ( input.adaptor rescue nil ) or 24 shared_attribute( :adaptor ) 29 AST::RewriteRuleSubtreeStream.new( @adaptor, desc, element ) 33 AST::RewriteRuleTokenStream.new( @adaptor, desc, element ) 37 AST::RewriteRuleNodeStream.new( @adaptor, desc, element )
|
/external/antlr/antlr-3.4/tool/src/main/resources/org/antlr/codegen/templates/Python/ |
ASTDbg.stg | 35 def setTreeAdaptor(self, adaptor): 37 self._adaptor = DebugTreeAdaptor(self.dbg, adaptor) 39 self._adaptor = adaptor # delegator sends dbg adaptor 46 adaptor = property(getTreeAdaptor, setTreeAdaptor)<\n> 50 proxy = DebugEventSocketProxy(self, adaptor=<if(TREE_PARSER)>self.input.getTreeAdaptor()<else>self._adaptor<endif>, 53 self.adaptor.setDebugListener(proxy)
|
/external/antlr/antlr-3.4/runtime/C/src/ |
antlr3commontreeadaptor.c | 2 * This is the standard tree adaptor used by the C runtime unless the grammar 5 * good for, plus a number of methods that any other adaptor type 46 static pANTLR3_BASE_TREE dupNode (pANTLR3_BASE_TREE_ADAPTOR adaptor, pANTLR3_BASE_TREE treeNode); 48 static pANTLR3_BASE_TREE dbgCreate (pANTLR3_BASE_TREE_ADAPTOR adaptor, pANTLR3_COMMON_TOKEN payload); 49 static pANTLR3_COMMON_TOKEN createToken (pANTLR3_BASE_TREE_ADAPTOR adaptor, ANTLR3_UINT32 tokenType, pANTLR3_UINT8 text); 50 static pANTLR3_COMMON_TOKEN createTokenFromToken (pANTLR3_BASE_TREE_ADAPTOR adaptor, pANTLR3_COMMON_TOKEN fromToken); 51 static pANTLR3_COMMON_TOKEN getToken (pANTLR3_BASE_TREE_ADAPTOR adaptor, pANTLR3_BASE_TREE t); 52 static pANTLR3_STRING getText (pANTLR3_BASE_TREE_ADAPTOR adaptor, pANTLR3_BASE_TREE t); 53 static ANTLR3_UINT32 getType (pANTLR3_BASE_TREE_ADAPTOR adaptor, pANTLR3_BASE_TREE t); 54 static pANTLR3_BASE_TREE getChild (pANTLR3_BASE_TREE_ADAPTOR adaptor, pANTLR3_BASE_TREE t, ANTLR3_UINT32 i) [all...] |
/external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/tree/ |
TreeIterator.java | 42 protected TreeAdaptor adaptor; field in class:TreeIterator 61 public TreeIterator(TreeAdaptor adaptor, Object tree) { 62 this.adaptor = adaptor; 66 down = adaptor.create(Token.DOWN, "DOWN"); 67 up = adaptor.create(Token.UP, "UP"); 68 eof = adaptor.create(Token.EOF, "EOF"); 81 if ( adaptor.getChildCount(tree)>0 ) return true; 82 return adaptor.getParent(tree)!=null; // back at root? 88 if ( adaptor.getChildCount(tree)==0 ) { // single node tree (special [all...] |
CommonTreeNodeStream.java | 47 /** What tree adaptor was used to build these trees */ 48 TreeAdaptor adaptor; field in class:CommonTreeNodeStream 66 public CommonTreeNodeStream(TreeAdaptor adaptor, Object tree) { 68 this.adaptor = adaptor; 69 it = new TreeIterator(adaptor,root); 85 //System.out.println("pulled "+adaptor.getType(t)); 91 if ( level==0 && adaptor.isNil(t) ) { // if nil root, scarf nil, DOWN 100 public boolean isEOF(Object o) { return adaptor.getType(o) == Token.EOF; } 112 public TreeAdaptor getTreeAdaptor() { return adaptor; } [all...] |
DOTTreeGenerator.java | 80 TreeAdaptor adaptor, 86 toDOTDefineNodes(tree, adaptor, treeST); 88 toDOTDefineEdges(tree, adaptor, treeST); 90 if ( adaptor.getChildCount(tree)==0 ) { 92 treeST.add("nodes", adaptor.getText(tree)); 99 TreeAdaptor adaptor) 101 return toDOT(tree, adaptor, _treeST, _edgeST); 126 TreeAdaptor adaptor, 132 int n = adaptor.getChildCount(tree); 140 StringTemplate parentNodeST = getNodeST(adaptor, tree) [all...] |
TreeWizard.java | 48 * all this functionality into the adaptor. An adaptor helps build and 54 protected TreeAdaptor adaptor; field in class:TreeWizard 94 /** This adaptor creates TreePattern objects for use during scan() */ 122 public TreeWizard(TreeAdaptor adaptor) { 123 this.adaptor = adaptor; 126 public TreeWizard(TreeAdaptor adaptor, Map tokenNameToTypeMap) { 127 this.adaptor = adaptor; [all...] |
/external/antlr/antlr-3.4/tool/src/main/resources/org/antlr/codegen/templates/ObjC/ |
ASTDbg.stg | 33 ANTLRDebugTreeAdaptor *adaptor = [ANTLRDebugTreeAdaptor newTreeAdaptor:(id)dbg Adaptor:[ANTLRCommonTreeAdaptor newTreeAdaptor]]; 38 adaptor = [ANTLRDebugTreeAdaptor newTreeAdaptor:dbg Adaptor:anAdaptor]; 40 adaptor = [ANTLRDebugTreeAdaptor newTreeAdaptor:adaptor withDBG:dbg]; 42 adaptor = (ANTLRDebugTreeAdaptor *)adaptor; // delegator sends dbg adaptor 44 <grammar.directDelegates:{g|[<g:delegateName()> setTreeAdaptor:adaptor];}> [all...] |
/external/antlr/antlr-3.4/runtime/Ruby/lib/antlr3/debug/ |
trace-event-listener.rb | 17 def initialize( adaptor = nil, device = $stderr ) 20 @adaptor = adaptor ||= ANTLR3::AST::CommonTreeAdaptor.new 53 record '(%s) unique_id=%s text=%p type=%s[%s]', __method__, @adaptor.unique_id( tree ), 54 @adaptor.text_of( tree ), @adaptor.type_name( tree ), @adaptor.type_of( tree ) 58 record '(%s): k=%s unique_id=%s text=%p type=%s[%s]', __method__, i, @adaptor.unique_id( tree ), 59 @adaptor.text_of( tree ), @adaptor.type_name( tree ), @adaptor.type_of( tree [all...] |
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.Debug/ |
DebugTreeAdaptor.cs | 39 * AST events are triggered by this adaptor; no code gen changes are needed 41 * tree adaptor routines. 46 * cannot be tracked as they might not use the adaptor to create foo, bar. 54 protected ITreeAdaptor adaptor; field in class:Antlr.Runtime.Debug.DebugTreeAdaptor 56 public DebugTreeAdaptor(IDebugEventListener dbg, ITreeAdaptor adaptor) { 58 this.adaptor = adaptor; 66 object node = adaptor.Create(payload); 73 object node = adaptor.ErrorNode(input, start, stop, e); 81 object t = adaptor.DupTree(tree) [all...] |
/external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/debug/ |
DebugTreeAdaptor.java | 37 * AST events are triggered by this adaptor; no code gen changes are needed 39 * tree adaptor routines. 42 * cannot be tracked as they might not use the adaptor to create foo, bar. 49 protected TreeAdaptor adaptor; field in class:DebugTreeAdaptor 51 public DebugTreeAdaptor(DebugEventListener dbg, TreeAdaptor adaptor) { 53 this.adaptor = adaptor; 61 Object node = adaptor.create(payload); 69 Object node = adaptor.errorNode(input, start, stop, e); 77 Object t = adaptor.dupTree(tree) [all...] |
/external/antlr/antlr-3.4/runtime/ActionScript/project/src/org/antlr/runtime/tree/ |
RewriteRuleSubtreeStream.as | 32 public function RewriteRuleSubtreeStream(adaptor:TreeAdaptor, elementDescription:String, element:Object=null) { 33 super(adaptor, elementDescription, element); 56 return adaptor.dupNode(el); 64 return adaptor.dupTree(el);
|
RewriteRuleTokenStream.as | 34 public function RewriteRuleTokenStream(adaptor:TreeAdaptor, elementDescription:String, element:Object=null) { 35 super(adaptor, elementDescription, element); 41 return adaptor.createWithPayload(t);
|
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.Tree/ |
TreeIterator.cs | 42 protected ITreeAdaptor adaptor; field in class:Antlr.Runtime.Tree.TreeIterator 61 public TreeIterator(ITreeAdaptor adaptor, object tree) { 62 this.adaptor = adaptor; 66 down = adaptor.Create(TokenTypes.Down, "DOWN"); 67 up = adaptor.Create(TokenTypes.Up, "UP"); 68 eof = adaptor.Create(TokenTypes.EndOfFile, "EOF"); 93 if (adaptor.GetChildCount(tree) == 0) { 108 if (adaptor.GetChildCount(tree) > 0) { 109 tree = adaptor.GetChild(tree, 0) [all...] |
DotTreeGenerator.cs | 95 public virtual string ToDot( object tree, ITreeAdaptor adaptor ) 102 var nodes = DefineNodes( tree, adaptor ); 104 var edges = DefineEdges( tree, adaptor ); 124 protected virtual IEnumerable<string> DefineNodes( object tree, ITreeAdaptor adaptor ) 129 int n = adaptor.GetChildCount( tree ); 138 yield return GetNodeText( adaptor, tree ); 143 object child = adaptor.GetChild( tree, i ); 144 yield return GetNodeText( adaptor, child ); 145 foreach ( var t in DefineNodes( child, adaptor ) ) 150 protected virtual IEnumerable<string> DefineEdges( object tree, ITreeAdaptor adaptor ) [all...] |
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime/Tree/ |
TreeIterator.cs | 44 protected ITreeAdaptor adaptor; field in class:Antlr.Runtime.Tree.TreeIterator 65 public TreeIterator( ITreeAdaptor adaptor, object tree ) 67 this.adaptor = adaptor; 71 down = adaptor.Create( TokenTypes.Down, "DOWN" ); 72 up = adaptor.Create( TokenTypes.Up, "UP" ); 73 eof = adaptor.Create( TokenTypes.EndOfFile, "EOF" ); 102 if ( adaptor.GetChildCount( tree ) == 0 ) 126 if ( adaptor.GetChildCount( tree ) > 0 ) 128 tree = adaptor.GetChild( tree, 0 ) [all...] |
DotTreeGenerator.cs | 95 public virtual string ToDot( object tree, ITreeAdaptor adaptor ) 102 var nodes = DefineNodes( tree, adaptor ); 104 var edges = DefineEdges( tree, adaptor ); 124 protected virtual IEnumerable<string> DefineNodes( object tree, ITreeAdaptor adaptor ) 129 int n = adaptor.GetChildCount( tree ); 138 yield return GetNodeText( adaptor, tree ); 143 object child = adaptor.GetChild( tree, i ); 144 yield return GetNodeText( adaptor, child ); 145 foreach ( var t in DefineNodes( child, adaptor ) ) 150 protected virtual IEnumerable<string> DefineEdges( object tree, ITreeAdaptor adaptor ) [all...] |
/external/antlr/antlr-3.4/runtime/Python/antlr3/ |
dottreegen.py | 80 def toDOT(self, tree, adaptor=None, treeST=_treeST, edgeST=_edgeST): 81 if adaptor is None: 82 adaptor = CommonTreeAdaptor() 87 self.toDOTDefineNodes(tree, adaptor, treeST) 90 self.toDOTDefineEdges(tree, adaptor, treeST, edgeST) 94 def toDOTDefineNodes(self, tree, adaptor, treeST, knownNodes=None): 101 n = adaptor.getChildCount(tree) 110 parentNodeST = self.getNodeST(adaptor, tree) 116 child = adaptor.getChild(tree, i) 120 nodeST = self.getNodeST(adaptor, child [all...] |
/external/antlr/antlr-3.4/tool/src/main/antlr3/org/antlr/grammar/v3/ |
AssignTokenTypesWalker.g | 130 TreeAdaptor adaptor = new ANTLRParser.grammar_Adaptor(null); 135 stringAlias = (GrammarAST)adaptor.create( BLOCK, "BLOCK" ); 137 GrammarAST alt = (GrammarAST)adaptor.create( ALT, "ALT" ); 138 adaptor.addChild( alt, adaptor.create( STRING_LITERAL, "STRING_LITERAL" ) ); 139 adaptor.addChild( alt, adaptor.create( EOA, "EOA" ) ); 140 adaptor.addChild( stringAlias, alt ); 142 adaptor.addChild( stringAlias, adaptor.create( EOB, "EOB" ) ) [all...] |
/external/libcxx/test/utilities/allocator.adaptor/ |
Android.mk | 17 test_makefile := external/libcxx/test/utilities/allocator.adaptor/Android.mk 19 test_name := utilities/allocator.adaptor/types
|
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime.Debug/ |
DebugTreeAdaptor.cs | 40 * AST events are triggered by this adaptor; no code gen changes are needed 42 * tree adaptor routines. 47 * cannot be tracked as they might not use the adaptor to create foo, bar. 56 protected ITreeAdaptor adaptor; field in class:Antlr.Runtime.Debug.DebugTreeAdaptor 58 public DebugTreeAdaptor( IDebugEventListener dbg, ITreeAdaptor adaptor ) 61 this.adaptor = adaptor; 71 object node = adaptor.Create( payload ); 79 object node = adaptor.ErrorNode( input, start, stop, e ); 89 object t = adaptor.DupTree( tree ) [all...] |
/external/smali/smali/src/main/java/org/jf/smali/ |
smaliParser.java | 309 protected TreeAdaptor adaptor = new CommonTreeAdaptor(); field in class:smaliParser 311 public void setTreeAdaptor(TreeAdaptor adaptor) { 312 this.adaptor = adaptor; 315 return adaptor; 522 RewriteRuleTokenStream stream_EOF=new RewriteRuleTokenStream(adaptor,"token EOF"); 523 RewriteRuleSubtreeStream stream_field=new RewriteRuleSubtreeStream(adaptor,"rule field"); 524 RewriteRuleSubtreeStream stream_annotation=new RewriteRuleSubtreeStream(adaptor,"rule annotation"); 525 RewriteRuleSubtreeStream stream_super_spec=new RewriteRuleSubtreeStream(adaptor,"rule super_spec"); 526 RewriteRuleSubtreeStream stream_implements_spec=new RewriteRuleSubtreeStream(adaptor,"rule implements_spec") [all...] |
/external/antlr/antlr-3.4/runtime/ObjC/Framework/examples/simplecTreeParser/ |
SimpleCParser.java | 52 protected TreeAdaptor adaptor = new CommonTreeAdaptor(); field in class:SimpleCParser 54 public void setTreeAdaptor(TreeAdaptor adaptor) { 55 this.adaptor = adaptor; 58 return adaptor; 86 root_0 = (Object)adaptor.nil(); 109 adaptor.addChild(root_0, declaration1.getTree()); 128 retval.tree = (Object)adaptor.rulePostProcessing(root_0); 129 adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop); 135 retval.tree = (Object)adaptor.errorNode(input, retval.start, input.LT(-1), re) [all...] |
/external/antlr/antlr-3.4/runtime/ObjC/Framework/examples/simplecTreeParser/output1/ |
SimpleCParser.java | 52 protected TreeAdaptor adaptor = new CommonTreeAdaptor(); field in class:SimpleCParser 54 public void setTreeAdaptor(TreeAdaptor adaptor) { 55 this.adaptor = adaptor; 58 return adaptor; 86 root_0 = (Object)adaptor.nil(); 109 adaptor.addChild(root_0, declaration1.getTree()); 128 retval.tree = (Object)adaptor.rulePostProcessing(root_0); 129 adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop); 135 retval.tree = (Object)adaptor.errorNode(input, retval.start, input.LT(-1), re) [all...] |
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Utility/Antlr.Utility.Tree/ |
DOTTreeGenerator.cs | 93 public virtual string ToDot(object tree, ITreeAdaptor adaptor) { 99 var nodes = DefineNodes(tree, adaptor); 101 var edges = DefineEdges(tree, adaptor); 120 protected virtual IEnumerable<string> DefineNodes(object tree, ITreeAdaptor adaptor) { 124 int n = adaptor.GetChildCount(tree); 132 yield return GetNodeText(adaptor, tree); 136 object child = adaptor.GetChild(tree, i); 137 yield return GetNodeText(adaptor, child); 138 foreach (var t in DefineNodes(child, adaptor)) 143 protected virtual IEnumerable<string> DefineEdges(object tree, ITreeAdaptor adaptor) { [all...] |