-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update gradle script to version 8 and renamed Grammar file
- Loading branch information
saharmehrpour
committed
Oct 31, 2023
1 parent
05d1610
commit 99f4a4c
Showing
13 changed files
with
1,709 additions
and
1,697 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
apply plugin: 'java' | ||
plugins { | ||
id 'java' | ||
} | ||
|
||
repositories { | ||
jcenter() | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
runtime 'org.antlr:antlr4:4.7.1' | ||
implementation 'org.antlr:antlr4:4.7.1' | ||
} | ||
|
||
task generateParser(type:JavaExec) { | ||
main = 'org.antlr.v4.Tool' | ||
classpath = sourceSets.main.runtimeClasspath | ||
args = ['-Dlanguage=JavaScript', 'myGrammar.g4', '-o', 'src/core/generated-parser'] | ||
args = ['-Dlanguage=JavaScript', 'rulePadGrammar.g4', '-o', 'src/core/generated-parser'] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
grammar myGrammar; | ||
grammar rulePadGrammar; | ||
|
||
inputSentence | ||
: (emptyLine* | mustClause) end? NL* EOF | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.