Home
last modified time | relevance | path

Searched refs:grammarFileName (Results 1 – 25 of 50) sorted by relevance

12

/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.Debug/
DTracer.cs58 override public void EnterRule(string grammarFileName, string ruleName) in EnterRule() argument
64 …Console.Out.WriteLine("> " + grammarFileName + " " + ruleName + " lookahead(1)=" + GetInputSymbol(… in EnterRule()
68 override public void ExitRule(string grammarFileName, string ruleName) in ExitRule() argument
75 …Console.Out.WriteLine("< " + grammarFileName + " " + ruleName + " lookahead(1)=" + GetInputSymbol(… in ExitRule()
DDebugEventRepeater.cs56 public virtual void EnterRule(string grammarFileName, string ruleName) { in EnterRule() argument
57 _listener.EnterRule(grammarFileName, ruleName); in EnterRule()
59 public virtual void ExitRule(string grammarFileName, string ruleName) { in ExitRule() argument
60 _listener.ExitRule(grammarFileName, ruleName); in ExitRule()
DDebugEventSocketProxy.cs58 protected string grammarFileName; field in Antlr.Runtime.Debug.DebugEventSocketProxy
78 this.grammarFileName = recognizer.GrammarFileName; in DebugEventSocketProxy()
104 socket.Send(encoding.GetBytes("grammar \"" + grammarFileName + "\n")); in Handshake()
153 public override void EnterRule(string grammarFileName, string ruleName) { in EnterRule() argument
154 Transmit("enterRule\t" + grammarFileName + "\t" + ruleName); in EnterRule()
161 public override void ExitRule(string grammarFileName, string ruleName) { in ExitRule() argument
162 Transmit("exitRule\t" + grammarFileName + "\t" + ruleName); in ExitRule()
DIDebugEventListener.cs57 void EnterRule(string grammarFileName, string ruleName); in EnterRule() argument
75 void ExitRule(string grammarFileName, string ruleName); in ExitRule() argument
DBlankDebugEventListener.cs49 public virtual void EnterRule(string grammarFileName, string ruleName) { in EnterRule() argument
54 public virtual void ExitRule(string grammarFileName, string ruleName) { in ExitRule() argument
DDebugEventHub.cs72 public virtual void EnterRule(string grammarFileName, string ruleName) { in EnterRule() argument
75 listener.EnterRule(grammarFileName, ruleName); in EnterRule()
79 public virtual void ExitRule(string grammarFileName, string ruleName) { in ExitRule() argument
82 listener.ExitRule(grammarFileName, ruleName); in ExitRule()
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/tool/
DInterp.java69 String grammarFileName = args[0]; in main() local
77 Grammar parser = new Grammar(tool, grammarFileName, composite); in main()
79 FileReader fr = new FileReader(grammarFileName); in main()
101 lexer.fileName = grammarFileName; in main()
107 System.err.println("no lexer grammar found in "+grammarFileName); in main()
122 System.err.println("Rule "+startRule+" does not exist in "+grammarFileName); in main()
DGrammarSpelunker.java48 protected String grammarFileName; field in GrammarSpelunker
60 public GrammarSpelunker(String inputDirectory, String grammarFileName) { in GrammarSpelunker() argument
62 this.grammarFileName = grammarFileName; in GrammarSpelunker()
70 else throw new Error("Error parsing "+grammarFileName+": '"+token+ in match()
75 … new FileReader((inputDirectory != null ? inputDirectory + File.separator : "") + grammarFileName); in parse()
DRandomPhrase.java145 String grammarFileName = args[0]; in main() local
157 Grammar parser = new Grammar(tool, grammarFileName, composite); in main()
160 FileReader fr = new FileReader(grammarFileName); in main()
182 lexer.fileName = grammarFileName; in main()
187 System.err.println("no lexer grammar found in "+grammarFileName); in main()
221 System.err.println("Error walking "+grammarFileName+" rule "+startRule+" seed "+seed); in main()
225 System.err.println("Exception walking "+grammarFileName+" rule "+startRule+" seed "+seed); in main()
DBuildDependencyGenerator.java78 protected String grammarFileName; field in BuildDependencyGenerator
85 public BuildDependencyGenerator(Tool tool, String grammarFileName) in BuildDependencyGenerator() argument
88 this.grammarFileName = grammarFileName; in BuildDependencyGenerator()
89 grammar = tool.getRootGrammar(grammarFileName); in BuildDependencyGenerator()
100 File outputDir = tool.getOutputDirectory(grammarFileName); in getGeneratedFileList()
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/
DTool.java368 public boolean buildRequired(String grammarFileName) in buildRequired() argument
372 new BuildDependencyGenerator(this, grammarFileName); in buildRequired()
379 grammarFile = new File(inputDirectory, grammarFileName); in buildRequired()
382 grammarFile = new File(grammarFileName); in buildRequired()
429 for (String grammarFileName : grammarFileNames) { in process()
435 if ( !buildRequired(grammarFileName) ) continue; in process()
443 System.out.println(grammarFileName); in process()
448 new BuildDependencyGenerator(this, grammarFileName); in process()
459 Grammar rootGrammar = getRootGrammar(grammarFileName); in process()
542 grammarFileName); in process()
[all …]
/external/antlr/antlr-3.4/tool/src/main/resources/org/antlr/tool/templates/
Ddepend.stg9 dependencies(grammarFileName,in,out) ::= <<
10 <if(in)><grammarFileName>: <in; separator=", "><endif>
11 <out:{f | <f> : <grammarFileName>}; separator="\n">
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime.Debug/
DDebugEventRepeater.cs60 public virtual void EnterRule( string grammarFileName, string ruleName ) in EnterRule() argument
62 _listener.EnterRule( grammarFileName, ruleName ); in EnterRule()
64 public virtual void ExitRule( string grammarFileName, string ruleName ) in ExitRule() argument
66 _listener.ExitRule( grammarFileName, ruleName ); in ExitRule()
DDebugEventSocketProxy.cs58 protected string grammarFileName; field in Antlr.Runtime.Debug.DebugEventSocketProxy
80 this.grammarFileName = recognizer.GrammarFileName; in DebugEventSocketProxy()
111 socket.Send( encoding.GetBytes( "grammar \"" + grammarFileName + "\n" ) ); in Handshake()
170 public override void EnterRule( string grammarFileName, string ruleName ) in EnterRule() argument
172 Transmit( "enterRule\t" + grammarFileName + "\t" + ruleName ); in EnterRule()
180 public override void ExitRule( string grammarFileName, string ruleName ) in ExitRule() argument
182 Transmit( "exitRule\t" + grammarFileName + "\t" + ruleName ); in ExitRule()
DBlankDebugEventListener.cs53 public virtual void EnterRule( string grammarFileName, string ruleName ) in EnterRule() argument
59 public virtual void ExitRule( string grammarFileName, string ruleName ) in ExitRule() argument
DDebugEventHub.cs77 public virtual void EnterRule( string grammarFileName, string ruleName ) in EnterRule() argument
82 listener.EnterRule( grammarFileName, ruleName ); in EnterRule()
86 public virtual void ExitRule( string grammarFileName, string ruleName ) in ExitRule() argument
91 listener.ExitRule( grammarFileName, ruleName ); in ExitRule()
/external/antlr/antlr-3.4/runtime/C/src/
Dantlr3debughandlers.c56 static void enterRule (pANTLR3_DEBUG_EVENT_LISTENER delboy, const char * grammarFileName, const …
58 static void exitRule (pANTLR3_DEBUG_EVENT_LISTENER delboy, const char * grammarFileName, const c…
312 sprintf (message, "grammar \"%s\n", delboy->grammarFileName->chars); in handshake()
428 …delboy->tokenString = delboy->grammarFileName->factory->newSize(delboy->grammarFileName->factory, … in serializeToken()
477 …delboy->tokenString = delboy->grammarFileName->factory->newSize(delboy->grammarFileName->factory, … in serializeNode()
548 enterRule (pANTLR3_DEBUG_EVENT_LISTENER delboy, const char * grammarFileName, const char * ruleN… in enterRule() argument
554 sprintf(buffer, "enterRule\t%s\t%s\n", grammarFileName, ruleName); in enterRule()
570 exitRule (pANTLR3_DEBUG_EVENT_LISTENER delboy, const char * grammarFileName, const char * ruleNa… in exitRule() argument
576 sprintf(buffer, "exitRule\t%s\t%s\n", grammarFileName, ruleName); in exitRule()
926 …delboy->tokenString = delboy->grammarFileName->factory->newSize(delboy->grammarFileName->factory, … in createNode()
[all …]
/external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/debug/
DDebugEventRepeater.java49 …public void enterRule(String grammarFileName, String ruleName) { listener.enterRule(grammarFileNam… in enterRule() argument
50 …public void exitRule(String grammarFileName, String ruleName) { listener.exitRule(grammarFileName,… in exitRule() argument
DDebugEventSocketProxy.java50 protected String grammarFileName; field in DebugEventSocketProxy
68 this.grammarFileName = recognizer.getGrammarFileName(); in DebugEventSocketProxy()
85 out.println("grammar \""+ grammarFileName); in handshake()
121 public void enterRule(String grammarFileName, String ruleName) { in enterRule() argument
122 transmit("enterRule\t"+grammarFileName+"\t"+ruleName); in enterRule()
129 public void exitRule(String grammarFileName, String ruleName) { in exitRule() argument
130 transmit("exitRule\t"+grammarFileName+"\t"+ruleName); in exitRule()
DBlankDebugEventListener.java38 public void enterRule(String grammarFileName, String ruleName) {} in enterRule() argument
39 public void exitRule(String grammarFileName, String ruleName) {} in exitRule() argument
DDebugEventListener.java56 public void enterRule(String grammarFileName, String ruleName); in enterRule() argument
70 public void exitRule(String grammarFileName, String ruleName); in exitRule() argument
/external/antlr/antlr-3.4/runtime/C/include/
Dantlr3debugeventlistener.h80 pANTLR3_STRING grammarFileName; member
106 …void (*enterRule) (pANTLR3_DEBUG_EVENT_LISTENER delboy, const char * grammarFileName, const cha…
118 …void (*exitRule) (pANTLR3_DEBUG_EVENT_LISTENER delboy, const char * grammarFileName, const cha…
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime/Debug/
DIDebugEventListener.cs59 void EnterRule( string grammarFileName, string ruleName ); in EnterRule() argument
77 void ExitRule( string grammarFileName, string ruleName ); in ExitRule() argument
/external/antlr/antlr-3.4/antlr3-maven-plugin/src/main/java/org/antlr/mojo/antlr3/
DAntlr3Mojo.java482 private String findSourceSubdir(File sourceDirectory, String grammarFileName) { in findSourceSubdir() argument
485 if (!grammarFileName.startsWith(srcPath)) { in findSourceSubdir()
486 …throw new IllegalArgumentException("expected " + grammarFileName + " to be prefixed with " + sourc… in findSourceSubdir()
489 File unprefixedGrammarFileName = new File(grammarFileName.substring(srcPath.length())); in findSourceSubdir()
/external/antlr/antlr-3.4/runtime/Python/antlr3/
Ddebug.py413 def enterRule(self, grammarFileName, ruleName): argument
431 def exitRule(self, grammarFileName, ruleName): argument
757 def enterRule(self, grammarFileName, ruleName): argument
760 def exitRule(self, grammarFileName, ruleName): argument
846 self.grammarFileName = recognizer.getGrammarFileName()
889 self.write("grammar \"%s" % self.grammarFileName)
922 def enterRule(self, grammarFileName, ruleName): argument
923 self.transmit("enterRule\t%s\t%s" % (grammarFileName, ruleName))
930 def exitRule(self, grammarFileName, ruleName): argument
931 self.transmit("exitRule\t%s\t%s" % (grammarFileName, ruleName))

12