VHDL grammar
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   J_H
Posted On:   Wednesday, May 20, 2009 05:25 PM

There is C# VHDL grammar for download in the Grammar List on the ANTLR home page. It is clearly a ANTLR v3 grammar. When I try to generate code from it using ANTLR 3.1.3, I get the output given below. What can be wrong? error(10): internal error: : java.io.FileNotFoundException: org.antlr.Tool (Det går inte att hitta filen) java.io.FileInputStream.open(Native Method) java.io.FileInputStream. (Unknown Source) java.io.FileInputStream. (Unknown Source) java.io.FileReader. (Unknown Source) org.antlr.tool.GrammarSpelunker.parse(GrammarSpelunker.java:79) org.antlr.Tool.sortGrammarFiles(Tool.java:525) org.antlr.Tool.process(Tool.java:383) org.antlr.Tool.main(Tool.java:91) error   More>>

There is C# VHDL grammar for download in the Grammar List on the ANTLR home page. It is clearly a ANTLR v3 grammar. When I try to generate code from it using ANTLR 3.1.3, I get the output given below. What can be wrong?


			
error(10): internal error: : java.io.FileNotFoundException: org.antlr.Tool (Det går inte att hitta filen)
java.io.FileInputStream.open(Native Method)
java.io.FileInputStream. (Unknown Source)
java.io.FileInputStream. (Unknown Source)
java.io.FileReader. (Unknown Source)
org.antlr.tool.GrammarSpelunker.parse(GrammarSpelunker.java:79)
org.antlr.Tool.sortGrammarFiles(Tool.java:525)
org.antlr.Tool.process(Tool.java:383)
org.antlr.Tool.main(Tool.java:91)
error(7): cannot find or open file: org.antlr.Tool
warning(200): vhdl.g:194:3: Decision can match input such as "BASIC_IDENTIFIER..EXTENDED_IDENTIFIER" using multiple alternatives: 1, 2, 3, 4, 5, 6, 7, 8, 9
As a result, alternative(s) 2,3,4,5,6,7,8,9 were disabled for that input
error(201): vhdl.g:194:3: The following alternatives can never be matched: 6,7

warning(200): vhdl.g:668:65: Decision can match input such as "{AND, NAND, NOR, OR, XNOR..XOR}" using multiple alternatives: 1, 2
As a result, alternative(s) 2 were disabled for that input
warning(200): vhdl.g:672:13: Decision can match input such as "DOUBLESTAR" using multiple alternatives: 1, 2
As a result, alternative(s) 2 were disabled for that input
warning(200): vhdl.g:926:7: Decision can match input such as "CHARACTER_LITERAL" using multiple alternatives: 2, 3
As a result, alternative(s) 3 were disabled for that input
warning(200): vhdl.g:936:5: Decision can match input such as "LPAREN" using multiple alternatives: 1, 2
As a result, alternative(s) 2 were disabled for that input
warning(200): vhdl.g:936:5: Decision can match input such as "CHARACTER_LITERAL" using multiple alternatives: 1, 2
As a result, alternative(s) 2 were disabled for that input
warning(200): vhdl.g:936:5: Decision can match input such as "LBRACKET" using multiple alternatives: 1, 2
As a result, alternative(s) 2 were disabled for that input
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at java.util.HashMap.addEntry(Unknown Source)
at java.util.HashMap.put(Unknown Source)
at java.util.HashSet.add(Unknown Source)
at org.antlr.analysis.NFAToDFAConverter.closure(NFAToDFAConverter.java:630)
at org.antlr.analysis.NFAToDFAConverter.closure(NFAToDFAConverter.java:709)
at org.antlr.analysis.NFAToDFAConverter.closure(NFAToDFAConverter.java:709)
at org.antlr.analysis.NFAToDFAConverter.closure(NFAToDFAConverter.java:683)
at org.antlr.analysis.NFAToDFAConverter.computeStartState(NFAToDFAConverter.java:170)
at org.antlr.analysis.NFAToDFAConverter.convert(NFAToDFAConverter.java:81)
at org.antlr.analysis.DFA. (DFA.java:233)
at org.antlr.tool.Grammar.createLookaheadDFA(Grammar.java:1276)
at org.antlr.tool.Grammar.createLookaheadDFAs(Grammar.java:1021)
at org.antlr.tool.Grammar.createLookaheadDFAs(Grammar.java:971)
at org.antlr.codegen.Target.performGrammarAnalysis(Target.java:114)
at org.antlr.codegen.CodeGenerator.genRecognizer(CodeGenerator.java:301)
at org.antlr.Tool.generateRecognizer(Tool.java:607)
at org.antlr.Tool.process(Tool.java:429)
at org.antlr.Tool.main(Tool.java:91)
   <<Less
About | Sitemap | Contact