Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
ProofScriptParser
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
24
Issues
24
List
Boards
Labels
Service Desk
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sarah.grebing
ProofScriptParser
Commits
b2d6b0e4
Commit
b2d6b0e4
authored
Jan 23, 2018
by
Alexander Weigl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dist as libs
parent
9260f35a
Pipeline
#17229
passed with stages
in 10 minutes and 24 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
85 additions
and
10 deletions
+85
-10
lang/src/main/java/edu/kit/iti/formal/psdbg/parser/ast/ASTNode.java
...ain/java/edu/kit/iti/formal/psdbg/parser/ast/ASTNode.java
+14
-1
lang/src/main/java/edu/kit/iti/formal/psdbg/parser/ast/ProofScript.java
...java/edu/kit/iti/formal/psdbg/parser/ast/ProofScript.java
+19
-4
ui/pom.xml
ui/pom.xml
+52
-5
No files found.
lang/src/main/java/edu/kit/iti/formal/psdbg/parser/ast/ASTNode.java
View file @
b2d6b0e4
...
...
@@ -31,12 +31,12 @@ import lombok.Setter;
import
org.antlr.v4.runtime.ParserRuleContext
;
import
javax.annotation.Nullable
;
import
java.util.Objects
;
/**
* @author Alexander Weigl
* @version 1 (27.04.17)
*/
@EqualsAndHashCode
public
abstract
class
ASTNode
<
T
extends
ParserRuleContext
>
implements
Visitable
,
Copyable
<
ASTNode
<
T
>>
{
/**
...
...
@@ -139,4 +139,17 @@ public abstract class ASTNode<T extends ParserRuleContext>
}
while
(
n
!=
null
);
return
depth
;
}
@Override
public
boolean
equals
(
Object
o
)
{
if
(
this
==
o
)
return
true
;
if
(
o
==
null
||
getClass
()
!=
o
.
getClass
())
return
false
;
ASTNode
<?>
astNode
=
(
ASTNode
<?>)
o
;
return
Objects
.
equals
(
getRuleContext
(),
astNode
.
getRuleContext
());
}
@Override
public
int
hashCode
()
{
return
Objects
.
hash
(
getRuleContext
());
}
}
lang/src/main/java/edu/kit/iti/formal/psdbg/parser/ast/ProofScript.java
View file @
b2d6b0e4
...
...
@@ -25,16 +25,16 @@ package edu.kit.iti.formal.psdbg.parser.ast;
import
edu.kit.iti.formal.psdbg.parser.ScriptLanguageParser
;
import
edu.kit.iti.formal.psdbg.parser.Visitor
;
import
lombok.Data
;
import
lombok.Getter
;
import
lombok.NonNull
;
import
lombok.Setter
;
import
lombok.*
;
import
java.util.Objects
;
/**
* @author Alexander Weigl
* @version 1 (27.04.17)
*/
@Data
@EqualsAndHashCode
(
callSuper
=
false
)
public
class
ProofScript
extends
ASTNode
<
ScriptLanguageParser
.
ScriptContext
>
{
@NonNull
@Getter
...
...
@@ -73,4 +73,19 @@ public class ProofScript extends ASTNode<ScriptLanguageParser.ScriptContext> {
return
getBody
()
!=
null
?
getBody
().
eq
(
that
.
getBody
())
:
that
.
getBody
()
==
null
;
}
@Override
public
boolean
equals
(
Object
o
)
{
if
(
this
==
o
)
return
true
;
if
(
o
==
null
||
getClass
()
!=
o
.
getClass
())
return
false
;
if
(!
super
.
equals
(
o
))
return
false
;
ProofScript
that
=
(
ProofScript
)
o
;
return
Objects
.
equals
(
getName
(),
that
.
getName
())
&&
Objects
.
equals
(
getSignature
(),
that
.
getSignature
())
&&
Objects
.
equals
(
getBody
(),
that
.
getBody
());
}
@Override
public
int
hashCode
()
{
return
Objects
.
hash
(
super
.
hashCode
(),
getName
(),
getSignature
(),
getBody
());
}
}
ui/pom.xml
View file @
b2d6b0e4
...
...
@@ -72,6 +72,52 @@
<build>
<plugins>
<plugin>
<groupId>
org.codehaus.mojo
</groupId>
<artifactId>
appassembler-maven-plugin
</artifactId>
<version>
1.10
</version>
<configuration>
<repositoryLayout>
flat
</repositoryLayout>
<repositoryName>
libs
</repositoryName>
<binFolder>
./
</binFolder>
<!-- Set the target configuration directory to be used in the bin scripts -->
<configurationDirectory>
conf
</configurationDirectory>
<!-- Copy the contents from "/src/main/config" to the target
configuration directory in the assembled application -->
<copyConfigurationDirectory>
true
</copyConfigurationDirectory>
<!-- Include the target configuration directory in the beginning of
the classpath declaration in the bin scripts -->
<includeConfigurationDirectoryInClasspath>
true
</includeConfigurationDirectoryInClasspath>
<!-- set alternative assemble directory -->
<assembleDirectory>
${project.build.directory}/dist
</assembleDirectory>
<!-- Extra JVM arguments that will be included in the bin scripts -->
<extraJvmArguments>
-Xms128m
</extraJvmArguments>
<!-- Generate bin scripts for windows and unix pr default -->
<platforms>
<platform>
windows
</platform>
<platform>
unix
</platform>
</platforms>
<programs>
<program>
<mainClass>
edu.kit.iti.formal.psdbg.gui.ProofScriptDebugger
</mainClass>
<id>
psdbg
</id>
<!-- Only generate unix shell script for this application -->
<platforms>
<platform>
unix
</platform>
<platform>
windows
</platform>
</platforms>
</program>
</programs>
</configuration>
<executions>
<execution>
<phase>
package
</phase>
</execution>
</executions>
</plugin>
<plugin>
<groupId>
org.lesscss
</groupId>
<artifactId>
lesscss-maven-plugin
</artifactId>
...
...
@@ -92,12 +138,12 @@
</plugin>
<!--
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>2.4.3</version>
<configuration>
<!-- put your configurations here -->
</configuration>
<executions>
<execution>
...
...
@@ -120,6 +166,7 @@
</execution>
</executions>
</plugin>
-->
<plugin>
<groupId>
org.antlr
</groupId>
<artifactId>
antlr4-maven-plugin
</artifactId>
...
...
@@ -149,10 +196,10 @@
<name>
bintray
</name>
<url>
http://dl.bintray.com/jerady/maven
</url>
</repository>
<repository>
<id>
sonatype
</id>
<url>
https://oss.sonatype.org/content/repositories/snapshots/
</url>
</repository>
<repository>
<id>
sonatype
</id>
<url>
https://oss.sonatype.org/content/repositories/snapshots/
</url>
</repository>
</repositories>
...
...
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