Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
JastAdd
ros2rag
Commits
b49db15d
Commit
b49db15d
authored
Apr 08, 2020
by
Johannes Mey
Browse files
use relast
parent
6e0686df
Pipeline
#6209
passed with stage
in 1 minute and 27 seconds
Changes
4
Pipelines
1
Show whitespace changes
Inline
Side-by-side
.gitignore
View file @
b49db15d
*.jar
!gradle/wrapper/gradle-wrapper.jar
!libs/*.jar
.project
.classpath
.idea/
...
...
build.gradle
View file @
b49db15d
...
...
@@ -55,6 +55,37 @@ jar {
}
}
task
preprocess
(
type:
JavaExec
)
{
group
=
'Build'
main
=
"-jar"
doFirst
{
delete
"./src/gen/jastadd/*.ast"
delete
"./src/gen/jastadd/RelAst.jadd"
delete
"./src/gen/jastadd/RelAstRefResolver.jadd"
delete
"./src/gen/jastadd/RelAstResolverStubs.jrag"
mkdir
"src/gen/jastadd/"
}
args
=
[
"libs/relast.jar"
,
"./src/main/jastadd/RelAst.relast"
,
"--listClass=java.util.ArrayList"
,
"--jastAddList=JastAddList"
,
"--useJastAddNames"
,
"--file"
,
"--resolverHelper"
,
"--grammarName=./src/gen/jastadd/RelAST"
]
inputs
.
files
file
(
"./src/main/jastadd/RelAST.relast"
),
file
(
"./libs/relast.jar"
)
outputs
.
files
file
(
"./src/gen/jastadd/RelAst.ast"
),
file
(
"./src/gen/jastadd/RelAst.jadd"
),
file
(
"./src/gen/jastadd/RelAstRefResolver.jadd"
),
file
(
'./src/gen/jastadd/RelAstResolverStubs.jrag'
)
}
jastadd
{
configureModuleBuild
()
modules
{
...
...
@@ -68,10 +99,13 @@ jastadd {
}
jastadd
{
basedir
"src/main/jastadd/"
include
"**/*.ast"
include
"**/*.jadd"
include
"**/*.jrag"
basedir
"src/"
include
"main/jastadd/**/*.ast"
include
"main/jastadd/**/*.jadd"
include
"main/jastadd/**/*.jrag"
include
"gen/jastadd/**/*.ast"
include
"gen/jastadd/**/*.jadd"
include
"gen/jastadd/**/*.jrag"
}
scanner
{
...
...
@@ -112,3 +146,4 @@ jastadd {
jastaddOptions
=
[
"--lineColumnNumbers"
,
"--safeLazy"
,
"--visitCheck=true"
,
"--rewrite=cnta"
,
"--cache=all"
]
}
generateAst
.
dependsOn
preprocess
libs/relast.jar
0 → 100644
View file @
b49db15d
File added
src/main/jastadd/RelAst.ast
→
src/main/jastadd/RelAst.
rel
ast
View file @
b49db15d
File moved
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment