Program: Charlie
When I try to open the .andl file I get an error message which says:
Parse Error! See the Log for more details!
The log is shown below:
Jan 13, 2020 12:38:07 PM charlie.pn.ANDLReader countPlaces SEVERE: org.antlr.runtime.RecognitionException java.lang.IllegalArgumentException: org.antlr.runtime.RecognitionException
at charlie.pn.ANDLParser.reportError(ANDLParser.java:151) at charlie.pn.ANDLParser.function_def(ANDLParser.java:588) at charlie.pn.ANDLParser.functions(ANDLParser.java:510) at charlie.pn.ANDLParser.net(ANDLParser.java:417) at charlie.pn.ANDLParser.start(ANDLParser.java:256) at charlie.pn.ANDLReader.countPlaces(ANDLReader.java:35) at charlie.pn.PetriNetReader.initReader(PetriNetReader.java:142) at charlie.pn.PetriNetReader.init(PetriNetReader.java:79) at GUI.App.loadNet(App.java:1064) at GUI.App.loadNet(App.java:1144) at GUI.App.sendMessage(App.java:836) at GUI.app_actions.FileOpenAction$1.doInBackground(FileOpenAction.java:74) at GUI.app_actions.FileOpenAction$1.doInBackground(FileOpenAction.java:71) at javax.swing.SwingWorker$1.call(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at javax.swing.SwingWorker.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)
Caused by: org.antlr.runtime.RecognitionException
at charlie.pn.ANDLParser.arithmetic_function(ANDLParser.java:2619) at charlie.pn.ANDLParser.function_def(ANDLParser.java:574) ... 17 more
Jan 13, 2020 12:38:07 PM charlie.pn.ANDLReader countTransitions SEVERE: org.antlr.runtime.RecognitionException java.lang.IllegalArgumentException: org.antlr.runtime.RecognitionException
at charlie.pn.ANDLParser.reportError(ANDLParser.java:151) at charlie.pn.ANDLParser.function_def(ANDLParser.java:588) at charlie.pn.ANDLParser.functions(ANDLParser.java:510) at charlie.pn.ANDLParser.net(ANDLParser.java:417) at charlie.pn.ANDLParser.start(ANDLParser.java:256) at charlie.pn.ANDLReader.countTransitions(ANDLReader.java:56) at charlie.pn.PetriNetReader.initReader(PetriNetReader.java:154) at charlie.pn.PetriNetReader.init(PetriNetReader.java:79) at GUI.App.loadNet(App.java:1064) at GUI.App.loadNet(App.java:1144) at GUI.App.sendMessage(App.java:836) at GUI.app_actions.FileOpenAction$1.doInBackground(FileOpenAction.java:74) at GUI.app_actions.FileOpenAction$1.doInBackground(FileOpenAction.java:71) at javax.swing.SwingWorker$1.call(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at javax.swing.SwingWorker.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)
Caused by: org.antlr.runtime.RecognitionException
at charlie.pn.ANDLParser.arithmetic_function(ANDLParser.java:2619) at charlie.pn.ANDLParser.function_def(ANDLParser.java:574) ... 17 more
Jan 13, 2020 12:38:07 PM charlie.pn.ANDLReader readNet SEVERE: org.antlr.runtime.RecognitionException java.lang.IllegalArgumentException: org.antlr.runtime.RecognitionException
at charlie.pn.ANDLParser.reportError(ANDLParser.java:151) at charlie.pn.ANDLParser.function_def(ANDLParser.java:588) at charlie.pn.ANDLParser.functions(ANDLParser.java:510) at charlie.pn.ANDLParser.net(ANDLParser.java:417) at charlie.pn.ANDLParser.start(ANDLParser.java:256) at charlie.pn.ANDLReader.readNet(ANDLReader.java:83) at GUI.App.loadNet(App.java:1065) at GUI.App.loadNet(App.java:1144) at GUI.App.sendMessage(App.java:836) at GUI.app_actions.FileOpenAction$1.doInBackground(FileOpenAction.java:74) at GUI.app_actions.FileOpenAction$1.doInBackground(FileOpenAction.java:71) at javax.swing.SwingWorker$1.call(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at javax.swing.SwingWorker.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)
Caused by: org.antlr.runtime.RecognitionException
at charlie.pn.ANDLParser.arithmetic_function(ANDLParser.java:2619) at charlie.pn.ANDLParser.function_def(ANDLParser.java:574) ... 15 more
I don’t understand java enough to be able to work out what is going wrong, and so hoped that you might be able to help me with this issue?
Many thanks, Terry