Skip to content

Commit 6e51145

Browse files
committed
jparsec: upgrade to 3.0
1 parent c17b802 commit 6e51145

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+122
-122
lines changed

org.coreasm.engine/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@
119119
<dependency>
120120
<groupId>org.jparsec</groupId>
121121
<artifactId>jparsec</artifactId>
122-
<version>2.3</version>
122+
<version>3.0</version>
123123
</dependency>
124124
<dependency>
125125
<groupId>concurrent</groupId>

org.coreasm.engine/src/org/coreasm/engine/interpreter/ScannerInfo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
import java.io.Serializable;
1717

18-
import org.codehaus.jparsec.Token;
18+
import org.jparsec.Token;
1919
import org.coreasm.engine.Specification;
2020
import org.coreasm.engine.parser.CharacterPosition;
2121
import org.coreasm.engine.parser.Parser;

org.coreasm.engine/src/org/coreasm/engine/kernel/ExpressionParserFactory.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
import java.util.Map;
1515
import java.util.Set;
1616

17-
import org.codehaus.jparsec.OperatorTable;
18-
import org.codehaus.jparsec.Parser;
19-
import org.codehaus.jparsec.functors.Binary;
20-
import org.codehaus.jparsec.functors.Unary;
17+
import org.jparsec.OperatorTable;
18+
import org.jparsec.Parser;
19+
import org.jparsec.functors.Binary;
20+
import org.jparsec.functors.Unary;
2121
import org.coreasm.engine.ControlAPI;
2222
import org.coreasm.engine.EngineError;
2323
import org.coreasm.engine.interpreter.ASTNode;

org.coreasm.engine/src/org/coreasm/engine/kernel/Kernel.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
import java.util.Map.Entry;
2525
import java.util.Set;
2626

27-
import org.codehaus.jparsec.Parser;
28-
import org.codehaus.jparsec.Parsers;
27+
import org.jparsec.Parser;
28+
import org.jparsec.Parsers;
2929
import org.coreasm.compiler.interfaces.CompilerPlugin;
3030
import org.coreasm.compiler.plugins.kernel.CompilerKernelPlugin;
3131
import org.coreasm.engine.ControlAPI;

org.coreasm.engine/src/org/coreasm/engine/kernel/KernelServices.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
package org.coreasm.engine.kernel;
1515

16-
import org.codehaus.jparsec.Parser;
16+
import org.jparsec.Parser;
1717

1818
import org.coreasm.engine.interpreter.Node;
1919
import org.coreasm.engine.plugin.PluginServiceInterface;

org.coreasm.engine/src/org/coreasm/engine/parser/GrammarProduction.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import java.util.Hashtable;
2020
import java.util.Iterator;
2121

22-
import org.codehaus.jparsec.Parser;
22+
import org.jparsec.Parser;
2323
import org.coreasm.engine.interpreter.Node;
2424
import org.coreasm.engine.parser.GrammarRule.GRType;
2525
import org.coreasm.util.CoreASMGlobal;

org.coreasm.engine/src/org/coreasm/engine/parser/GrammarRule.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515

1616
import org.coreasm.engine.interpreter.Node;
1717

18-
import org.codehaus.jparsec.Parser;
18+
import org.jparsec.Parser;
1919

2020
/**
21-
* A structure to hold a grammar rule, and a {@link jfun.parsec.Parser} instance
21+
* A structure to hold a grammar rule, and a {@link org.jparsec.Parser} instance
2222
* for that grammar rule.
2323
*
2424
* @author Roozbeh Farahbod

org.coreasm.engine/src/org/coreasm/engine/parser/JParsecParser.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public class JParsecParser implements Parser {
5757
private boolean headerParsed = false;
5858

5959
/** the actual parser -- a JParsec parser */
60-
private org.codehaus.jparsec.Parser<Node> parser;
60+
private org.jparsec.Parser<Node> parser;
6161

6262
/** the root grammar rule */
6363
private GrammarRule rootGrammarRule;
@@ -167,11 +167,11 @@ public void parseSpecification() throws ParserException {
167167
this.rootGrammarRule = ((ParserPlugin)kernel).getParsers().get("CoreASM");
168168
this.parser = rootGrammarRule.parser;
169169
try {
170-
org.codehaus.jparsec.Parser<Node> _parser = parser.from(parserTools.getTokenizer(), parserTools.getIgnored());
170+
org.jparsec.Parser<Node> _parser = parser.from(parserTools.getTokenizer(), parserTools.getIgnored());
171171
rootNode = (ASTNode) _parser.parse(specification.getText());
172172
} catch (Throwable e) {
173-
if (e instanceof org.codehaus.jparsec.error.ParserException) {
174-
org.codehaus.jparsec.error.ParserException pe = (org.codehaus.jparsec.error.ParserException) e;
173+
if (e instanceof org.jparsec.error.ParserException) {
174+
org.jparsec.error.ParserException pe = (org.jparsec.error.ParserException) e;
175175
Throwable cause = pe.getCause();
176176
String msg = pe.getMessage();
177177
msg = msg.substring(msg.indexOf("\n")+1);

org.coreasm.engine/src/org/coreasm/engine/parser/ParseMap.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
import org.coreasm.engine.plugin.Plugin;
1717

18-
import org.codehaus.jparsec.functors.Map;
18+
import org.jparsec.functors.Map;
1919

2020
/**
2121
* Specialized version of {@link Map} that gets a plug-in name as well.

org.coreasm.engine/src/org/coreasm/engine/parser/ParseMap2.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import org.coreasm.engine.interpreter.Node;
44
import org.coreasm.engine.plugin.Plugin;
55

6-
import org.codehaus.jparsec.functors.Map2;
6+
import org.jparsec.functors.Map2;
77

88
/**
99
* Specialized version of {@link Map3} that gets a plug-in name as well.

0 commit comments

Comments
 (0)