HomeSort by relevance Sort by last modified time
    Searched refs:adaptor (Results 1 - 25 of 184) sorted by null

1 2 3 4 5 6 7 8

  /external/antlr/tool/src/main/resources/org/antlr/codegen/templates/C/
ASTDbg.stg 36 protected DebugTreeAdaptor adaptor =
38 public void setTreeAdaptor(TreeAdaptor adaptor) {
39 this.adaptor = new DebugTreeAdaptor(dbg,adaptor);
42 return adaptor;
  /external/antlr/runtime/C/src/
antlr3basetreeadaptor.c 44 static pANTLR3_BASE_TREE nilNode (pANTLR3_BASE_TREE_ADAPTOR adaptor);
45 static pANTLR3_BASE_TREE dbgNil (pANTLR3_BASE_TREE_ADAPTOR adaptor);
46 static pANTLR3_BASE_TREE dupTree (pANTLR3_BASE_TREE_ADAPTOR adaptor, pANTLR3_BASE_TREE t);
47 static pANTLR3_BASE_TREE dbgDupTree (pANTLR3_BASE_TREE_ADAPTOR adaptor, pANTLR3_BASE_TREE t);
48 static pANTLR3_BASE_TREE dupTreeTT (pANTLR3_BASE_TREE_ADAPTOR adaptor, pANTLR3_BASE_TREE t, pANTLR3_BASE_TREE parent);
49 static void addChild (pANTLR3_BASE_TREE_ADAPTOR adaptor, pANTLR3_BASE_TREE t, pANTLR3_BASE_TREE child);
50 static void dbgAddChild (pANTLR3_BASE_TREE_ADAPTOR adaptor, pANTLR3_BASE_TREE t, pANTLR3_BASE_TREE child);
51 static pANTLR3_BASE_TREE becomeRoot (pANTLR3_BASE_TREE_ADAPTOR adaptor, pANTLR3_BASE_TREE newRoot, pANTLR3_BASE_TREE oldRoot);
52 static pANTLR3_BASE_TREE dbgBecomeRoot (pANTLR3_BASE_TREE_ADAPTOR adaptor, pANTLR3_BASE_TREE newRoot, pANTLR3_BASE_TREE oldRoot);
53 static pANTLR3_BASE_TREE rulePostProcessing (pANTLR3_BASE_TREE_ADAPTOR adaptor, pANTLR3_BASE_TREE root)
    [all...]
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/runtime/Java/src/main/java/org/antlr/runtime/tree/
RewriteRuleSubtreeStream.java 34 public RewriteRuleSubtreeStream(TreeAdaptor adaptor, String elementDescription) {
35 super(adaptor, elementDescription);
39 public RewriteRuleSubtreeStream(TreeAdaptor adaptor,
43 super(adaptor, elementDescription, oneElement);
47 public RewriteRuleSubtreeStream(TreeAdaptor adaptor,
51 super(adaptor, elementDescription, elements);
74 return adaptor.dupNode(el);
78 while (adaptor.isNil(tree) && adaptor.getChildCount(tree) == 1)
79 tree = adaptor.getChild(tree, 0)
    [all...]
RewriteRuleNodeStream.java 37 public RewriteRuleNodeStream(TreeAdaptor adaptor, String elementDescription) {
38 super(adaptor, elementDescription);
42 public RewriteRuleNodeStream(TreeAdaptor adaptor,
46 super(adaptor, elementDescription, oneElement);
50 public RewriteRuleNodeStream(TreeAdaptor adaptor,
54 super(adaptor, elementDescription, elements);
63 return adaptor.dupNode(el);
TreeVisitor.java 35 protected TreeAdaptor adaptor; field in class:TreeVisitor
37 public TreeVisitor(TreeAdaptor adaptor) {
38 this.adaptor = adaptor;
54 boolean isNil = adaptor.isNil(t);
58 for (int i=0; i<adaptor.getChildCount(t); i++) {
59 Object child = adaptor.getChild(t, i);
61 Object childAfterVisit = adaptor.getChild(t, i);
63 adaptor.setChild(t, i, visitResult);
RewriteRuleTokenStream.java 36 public RewriteRuleTokenStream(TreeAdaptor adaptor, String elementDescription) {
37 super(adaptor, elementDescription);
41 public RewriteRuleTokenStream(TreeAdaptor adaptor,
45 super(adaptor, elementDescription, oneElement);
49 public RewriteRuleTokenStream(TreeAdaptor adaptor,
53 super(adaptor, elementDescription, elements);
59 return adaptor.create(t);
  /external/antlr/runtime/C/include/
antlr3basetreeadaptor.h 2 * Definition of the ANTLR3 base tree adaptor.
73 void * (*nilNode) (struct ANTLR3_BASE_TREE_ADAPTOR_struct * adaptor);
76 void * (*dupTree) (struct ANTLR3_BASE_TREE_ADAPTOR_struct * adaptor, void * tree);
77 void * (*dupTreeTT) (struct ANTLR3_BASE_TREE_ADAPTOR_struct * adaptor, void * t, void * tree);
79 void (*addChild) (struct ANTLR3_BASE_TREE_ADAPTOR_struct * adaptor, void * t, void * child);
80 void (*addChildToken) (struct ANTLR3_BASE_TREE_ADAPTOR_struct * adaptor, void * t, pANTLR3_COMMON_TOKEN child);
81 void (*setParent) (struct ANTLR3_BASE_TREE_ADAPTOR_struct * adaptor, void * child, void * parent);
82 void * (*getParent) (struct ANTLR3_BASE_TREE_ADAPTOR_struct * adaptor, void * child);
84 void * (*errorNode) (struct ANTLR3_BASE_TREE_ADAPTOR_struct * adaptor, pANTLR3_TOKEN_STREAM tnstream, pANTLR3_COMMON_TOKEN startToken, pANTLR3_COMMON_TOKEN stopToken, pANTLR3_EXCEPTION e);
85 ANTLR3_BOOLEAN (*isNilNode) (struct ANTLR3_BASE_TREE_ADAPTOR_struct * adaptor, void * t)
    [all...]
  /external/antlr/tool/src/main/resources/org/antlr/codegen/templates/Java/
ASTDbg.stg 34 protected DebugTreeAdaptor adaptor;
35 public void setTreeAdaptor(TreeAdaptor adaptor) {
37 this.adaptor = new DebugTreeAdaptor(dbg,adaptor);
39 this.adaptor = (DebugTreeAdaptor)adaptor; // delegator sends dbg adaptor
41 <grammar.directDelegates:{g|<g:delegateName()>.setTreeAdaptor(this.adaptor);}>
44 return adaptor;
54 new DebugEventSocketProxy(this,port,<if(TREE_PARSER)>input.getTreeAdaptor()<else>adaptor<endif>)
    [all...]
  /external/antlr/tool/src/main/resources/org/antlr/codegen/templates/CSharp2/
ASTDbg.stg 36 protected DebugTreeAdaptor adaptor;
42 return adaptor;
47 this.adaptor = new DebugTreeAdaptor(dbg,adaptor);
49 this.adaptor = (DebugTreeAdaptor)adaptor; // delegator sends dbg adaptor
51 <grammar.directDelegates:{g|<g:delegateName()>.TreeAdaptor = this.adaptor;}>
61 DebugEventSocketProxy proxy = new DebugEventSocketProxy( this, port, <if(TREE_PARSER)>input.TreeAdaptor<else>adaptor<endif> );
88 <if(grammar.grammarIsRoot)><! don't create new adaptor for delegates !
    [all...]
  /external/antlr/tool/src/main/resources/org/antlr/codegen/templates/CSharp3/
ASTDbg.stg 38 // Implement this function in your helper file to use a custom tree adaptor
40 protected DebugTreeAdaptor adaptor;
46 return adaptor;
51 this.adaptor = new DebugTreeAdaptor(dbg,adaptor);
53 this.adaptor = (DebugTreeAdaptor)adaptor; // delegator sends dbg adaptor
55 <grammar.directDelegates:{g|<g:delegateName()>.TreeAdaptor = this.adaptor;}>
65 DebugEventSocketProxy proxy = new DebugEventSocketProxy( this, port, <if(TREE_PARSER)>input.TreeAdaptor<else>adaptor<endif> )
    [all...]
  /external/antlr/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.Tree/
RewriteRuleSubtreeStream.cs 38 public RewriteRuleSubtreeStream(ITreeAdaptor adaptor, string elementDescription)
39 : base(adaptor, elementDescription) {
43 public RewriteRuleSubtreeStream(ITreeAdaptor adaptor, string elementDescription, object oneElement)
44 : base(adaptor, elementDescription, oneElement) {
48 public RewriteRuleSubtreeStream(ITreeAdaptor adaptor, string elementDescription, IList elements)
49 : base(adaptor, elementDescription, elements) {
76 return adaptor.DupNode(el);
80 while (adaptor.IsNil(tree) && adaptor.GetChildCount(tree) == 1)
81 tree = adaptor.GetChild(tree, 0)
    [all...]
RewriteRuleNodeStream.cs 45 public RewriteRuleNodeStream(ITreeAdaptor adaptor, string elementDescription)
46 : base(adaptor, elementDescription) {
51 ITreeAdaptor adaptor,
54 ) : base(adaptor, elementDescription, oneElement) {
59 ITreeAdaptor adaptor,
62 ) : base(adaptor, elementDescription, elements) {
70 return adaptor.DupNode(el);
RewriteRuleTokenStream.cs 45 public RewriteRuleTokenStream(ITreeAdaptor adaptor, string elementDescription)
46 : base(adaptor, elementDescription) {
53 ITreeAdaptor adaptor,
56 ) : base(adaptor, elementDescription, oneElement) {
61 ITreeAdaptor adaptor,
64 ) : base(adaptor, elementDescription, elements) {
74 return adaptor.Create((IToken) NextTree());
TreeVisitor.cs 38 protected ITreeAdaptor adaptor; field in class:Antlr.Runtime.Tree.TreeVisitor
40 public TreeVisitor(ITreeAdaptor adaptor)
42 this.adaptor = adaptor;
61 bool isNil = adaptor.IsNil(t);
66 for (int i = 0; i < adaptor.GetChildCount(t); i++)
68 object child = adaptor.GetChild(t, i);
  /external/antlr/runtime/CSharp3/Sources/Antlr3.Runtime/Tree/
RewriteRuleSubtreeStream.cs 40 public RewriteRuleSubtreeStream( ITreeAdaptor adaptor, string elementDescription )
41 : base( adaptor, elementDescription )
46 public RewriteRuleSubtreeStream( ITreeAdaptor adaptor, string elementDescription, object oneElement )
47 : base( adaptor, elementDescription, oneElement )
52 public RewriteRuleSubtreeStream( ITreeAdaptor adaptor, string elementDescription, IList elements )
53 : base( adaptor, elementDescription, elements )
83 return adaptor.DupNode( el );
87 while (adaptor.IsNil(tree) && adaptor.GetChildCount(tree) == 1)
88 tree = adaptor.GetChild(tree, 0)
    [all...]
RewriteRuleNodeStream.cs 47 public RewriteRuleNodeStream( ITreeAdaptor adaptor, string elementDescription )
48 : base( adaptor, elementDescription )
53 public RewriteRuleNodeStream( ITreeAdaptor adaptor, string elementDescription, object oneElement )
54 : base( adaptor, elementDescription, oneElement )
59 public RewriteRuleNodeStream( ITreeAdaptor adaptor, string elementDescription, IList elements )
60 : base( adaptor, elementDescription, elements )
71 return adaptor.DupNode( el );
RewriteRuleTokenStream.cs 42 public RewriteRuleTokenStream( ITreeAdaptor adaptor, string elementDescription )
43 : base( adaptor, elementDescription )
48 public RewriteRuleTokenStream( ITreeAdaptor adaptor, string elementDescription, object oneElement )
49 : base( adaptor, elementDescription, oneElement )
54 public RewriteRuleTokenStream( ITreeAdaptor adaptor, string elementDescription, IList elements )
55 : base( adaptor, elementDescription, elements )
63 return adaptor.Create( t );
TreeVisitor.cs 40 protected ITreeAdaptor adaptor; field in class:Antlr.Runtime.Tree.TreeVisitor
42 public TreeVisitor( ITreeAdaptor adaptor )
44 this.adaptor = adaptor;
63 bool isNil = adaptor.IsNil( t );
68 for ( int i = 0; i < adaptor.GetChildCount(t); i++ )
70 object child = adaptor.GetChild( t, i );
  /external/antlr/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.Debug/
TraceDebugEventListener.cs 41 ITreeAdaptor adaptor; field in class:Antlr.Runtime.Debug.TraceDebugEventListener
43 public TraceDebugEventListener(ITreeAdaptor adaptor) {
44 this.adaptor = adaptor;
66 int ID = adaptor.GetUniqueID(t);
67 string text = adaptor.GetText(t);
68 int type = adaptor.GetType(t);
73 int ID = adaptor.GetUniqueID(t);
74 string text = adaptor.GetText(t);
75 int type = adaptor.GetType(t)
    [all...]
  /external/antlr/runtime/CSharp3/Sources/Antlr3.Runtime.Debug/
TraceDebugEventListener.cs 43 ITreeAdaptor adaptor; field in class:Antlr.Runtime.Debug.TraceDebugEventListener
45 public TraceDebugEventListener( ITreeAdaptor adaptor )
47 this.adaptor = adaptor;
75 int ID = adaptor.GetUniqueID( t );
76 string text = adaptor.GetText( t );
77 int type = adaptor.GetType( t );
83 int ID = adaptor.GetUniqueID( t );
84 string text = adaptor.GetText( t );
85 int type = adaptor.GetType( t )
    [all...]
  /external/antlr/runtime/Java/src/main/java/org/antlr/runtime/debug/
TraceDebugEventListener.java 35 TreeAdaptor adaptor; field in class:TraceDebugEventListener
37 public TraceDebugEventListener(TreeAdaptor adaptor) {
38 this.adaptor = adaptor;
54 int ID = adaptor.getUniqueID(t);
55 String text = adaptor.getText(t);
56 int type = adaptor.getType(t);
62 int ID = adaptor.getUniqueID(t);
63 String text = adaptor.getText(t);
64 int type = adaptor.getType(t)
    [all...]
  /external/antlr/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/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/tool/src/main/resources/org/antlr/codegen/templates/Python3/
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)

Completed in 4260 milliseconds

1 2 3 4 5 6 7 8