mirror of
https://github.com/irmen/prog8.git
synced 2024-12-24 16:29:21 +00:00
regenerate parser
This commit is contained in:
parent
5203dad7c1
commit
f541dd3bfd
2
.gitignore
vendored
2
.gitignore
vendored
@ -23,3 +23,5 @@ __pycache__/
|
|||||||
parser.out
|
parser.out
|
||||||
parsetab.py
|
parsetab.py
|
||||||
.pytest_cache/
|
.pytest_cache/
|
||||||
|
compiler/src/prog8_kotlin.jar
|
||||||
|
compiler/src/compiled_java
|
||||||
|
@ -6,6 +6,9 @@
|
|||||||
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
|
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
|
||||||
<sourceFolder url="file://$MODULE_DIR$/test" isTestSource="true" />
|
<sourceFolder url="file://$MODULE_DIR$/test" isTestSource="true" />
|
||||||
<sourceFolder url="file://$MODULE_DIR$/res" type="java-resource" />
|
<sourceFolder url="file://$MODULE_DIR$/res" type="java-resource" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/src/compiled_java" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/src/compiled_java/prog8" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/src/compiled_java/prog8/parser" />
|
||||||
</content>
|
</content>
|
||||||
<orderEntry type="inheritedJdk" />
|
<orderEntry type="inheritedJdk" />
|
||||||
<orderEntry type="sourceFolder" forTests="false" />
|
<orderEntry type="sourceFolder" forTests="false" />
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
mkdir compiled_java
|
mkdir compiled_java
|
||||||
|
|
||||||
java -jar ../antlr/lib/antlr-4.7.1-complete.jar -o ./prog8/parser -no-listener -no-visitor -package prog8.parser ../antlr/prog8.g4
|
java -jar ../antlr/lib/antlr-4.7.1-complete.jar -o ./prog8/parser -Xexact-output-dir -no-listener -no-visitor -package prog8.parser ../antlr/prog8.g4
|
||||||
|
|
||||||
@dir /b /S src *.java > sources.txt
|
@dir /b /S src *.java > sources.txt
|
||||||
javac -verbose -d compiled_java -cp ../antlr/lib/antlr-runtime-4.7.1.jar @sources.txt
|
javac -verbose -d compiled_java -cp ../antlr/lib/antlr-runtime-4.7.1.jar @sources.txt
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
java -jar ../antlr/lib/antlr-4.7.1-complete.jar -o ./prog8/parser -Xexact-output-dir -no-listener -no-visitor -package prog8.parser ../antlr/prog8.g4
|
||||||
|
|
||||||
find prog8 -name \*.java > javasources.txt
|
find prog8 -name \*.java > javasources.txt
|
||||||
mkdir -p compiled_java
|
mkdir -p compiled_java
|
||||||
javac -verbose -d compiled_java -cp ../antlr/lib/antlr-runtime-4.7.1.jar @javasources.txt
|
javac -verbose -d compiled_java -cp ../antlr/lib/antlr-runtime-4.7.1.jar @javasources.txt
|
||||||
|
Loading…
Reference in New Issue
Block a user