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
f3d39151
Commit
f3d39151
authored
May 04, 2017
by
Alexander Weigl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add fileheaders, clone() -> copy()
parent
9f9ffbe3
Pipeline
#10204
passed with stage
in 2 minutes and 19 seconds
Changes
49
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
49 changed files
with
1171 additions
and
82 deletions
+1171
-82
pom.xml
pom.xml
+7
-3
src/main/java/edu/kit/formal/proofscriptparser/ASTChanger.java
...ain/java/edu/kit/formal/proofscriptparser/ASTChanger.java
+24
-0
src/main/java/edu/kit/formal/proofscriptparser/ASTTraversal.java
...n/java/edu/kit/formal/proofscriptparser/ASTTraversal.java
+24
-0
src/main/java/edu/kit/formal/proofscriptparser/DefaultASTVisitor.java
...a/edu/kit/formal/proofscriptparser/DefaultASTVisitor.java
+25
-0
src/main/java/edu/kit/formal/proofscriptparser/Facade.java
src/main/java/edu/kit/formal/proofscriptparser/Facade.java
+24
-0
src/main/java/edu/kit/formal/proofscriptparser/NotWelldefinedException.java
...kit/formal/proofscriptparser/NotWelldefinedException.java
+24
-0
src/main/java/edu/kit/formal/proofscriptparser/PrettyPrinter.java
.../java/edu/kit/formal/proofscriptparser/PrettyPrinter.java
+24
-0
src/main/java/edu/kit/formal/proofscriptparser/TransformAst.java
...n/java/edu/kit/formal/proofscriptparser/TransformAst.java
+24
-0
src/main/java/edu/kit/formal/proofscriptparser/Visitable.java
...main/java/edu/kit/formal/proofscriptparser/Visitable.java
+24
-0
src/main/java/edu/kit/formal/proofscriptparser/Visitor.java
src/main/java/edu/kit/formal/proofscriptparser/Visitor.java
+24
-0
src/main/java/edu/kit/formal/proofscriptparser/ast/ASTNode.java
...in/java/edu/kit/formal/proofscriptparser/ast/ASTNode.java
+26
-2
src/main/java/edu/kit/formal/proofscriptparser/ast/AssignmentStatement.java
...kit/formal/proofscriptparser/ast/AssignmentStatement.java
+30
-2
src/main/java/edu/kit/formal/proofscriptparser/ast/BinaryExpression.java
...du/kit/formal/proofscriptparser/ast/BinaryExpression.java
+26
-2
src/main/java/edu/kit/formal/proofscriptparser/ast/BooleanLiteral.java
.../edu/kit/formal/proofscriptparser/ast/BooleanLiteral.java
+25
-1
src/main/java/edu/kit/formal/proofscriptparser/ast/CallStatement.java
...a/edu/kit/formal/proofscriptparser/ast/CallStatement.java
+26
-2
src/main/java/edu/kit/formal/proofscriptparser/ast/CaseStatement.java
...a/edu/kit/formal/proofscriptparser/ast/CaseStatement.java
+26
-2
src/main/java/edu/kit/formal/proofscriptparser/ast/CasesStatement.java
.../edu/kit/formal/proofscriptparser/ast/CasesStatement.java
+27
-3
src/main/java/edu/kit/formal/proofscriptparser/ast/Copyable.java
...n/java/edu/kit/formal/proofscriptparser/ast/Copyable.java
+33
-0
src/main/java/edu/kit/formal/proofscriptparser/ast/Expression.java
...java/edu/kit/formal/proofscriptparser/ast/Expression.java
+25
-1
src/main/java/edu/kit/formal/proofscriptparser/ast/ForeachStatement.java
...du/kit/formal/proofscriptparser/ast/ForeachStatement.java
+26
-2
src/main/java/edu/kit/formal/proofscriptparser/ast/GoalSelector.java
...va/edu/kit/formal/proofscriptparser/ast/GoalSelector.java
+24
-0
src/main/java/edu/kit/formal/proofscriptparser/ast/IntegerLiteral.java
.../edu/kit/formal/proofscriptparser/ast/IntegerLiteral.java
+25
-1
src/main/java/edu/kit/formal/proofscriptparser/ast/Literal.java
...in/java/edu/kit/formal/proofscriptparser/ast/Literal.java
+24
-0
src/main/java/edu/kit/formal/proofscriptparser/ast/MatchExpression.java
...edu/kit/formal/proofscriptparser/ast/MatchExpression.java
+28
-4
src/main/java/edu/kit/formal/proofscriptparser/ast/Operator.java
...n/java/edu/kit/formal/proofscriptparser/ast/Operator.java
+24
-0
src/main/java/edu/kit/formal/proofscriptparser/ast/Parameters.java
...java/edu/kit/formal/proofscriptparser/ast/Parameters.java
+26
-2
src/main/java/edu/kit/formal/proofscriptparser/ast/Position.java
...n/java/edu/kit/formal/proofscriptparser/ast/Position.java
+26
-2
src/main/java/edu/kit/formal/proofscriptparser/ast/ProofScript.java
...ava/edu/kit/formal/proofscriptparser/ast/ProofScript.java
+27
-3
src/main/java/edu/kit/formal/proofscriptparser/ast/RepeatStatement.java
...edu/kit/formal/proofscriptparser/ast/RepeatStatement.java
+26
-2
src/main/java/edu/kit/formal/proofscriptparser/ast/Signature.java
.../java/edu/kit/formal/proofscriptparser/ast/Signature.java
+26
-2
src/main/java/edu/kit/formal/proofscriptparser/ast/Statement.java
.../java/edu/kit/formal/proofscriptparser/ast/Statement.java
+26
-1
src/main/java/edu/kit/formal/proofscriptparser/ast/Statements.java
...java/edu/kit/formal/proofscriptparser/ast/Statements.java
+26
-2
src/main/java/edu/kit/formal/proofscriptparser/ast/StringLiteral.java
...a/edu/kit/formal/proofscriptparser/ast/StringLiteral.java
+25
-1
src/main/java/edu/kit/formal/proofscriptparser/ast/TermLiteral.java
...ava/edu/kit/formal/proofscriptparser/ast/TermLiteral.java
+25
-1
src/main/java/edu/kit/formal/proofscriptparser/ast/TheOnlyStatement.java
...du/kit/formal/proofscriptparser/ast/TheOnlyStatement.java
+26
-2
src/main/java/edu/kit/formal/proofscriptparser/ast/Type.java
src/main/java/edu/kit/formal/proofscriptparser/ast/Type.java
+24
-0
src/main/java/edu/kit/formal/proofscriptparser/ast/UnaryExpression.java
...edu/kit/formal/proofscriptparser/ast/UnaryExpression.java
+26
-2
src/main/java/edu/kit/formal/proofscriptparser/ast/Variable.java
...n/java/edu/kit/formal/proofscriptparser/ast/Variable.java
+25
-1
src/main/java/edu/kit/formal/proofscriptparser/ast/VariableDeclaration.java
...kit/formal/proofscriptparser/ast/VariableDeclaration.java
+0
-29
src/main/java/edu/kit/formal/proofscriptparser/ast/package-info.java
...va/edu/kit/formal/proofscriptparser/ast/package-info.java
+23
-1
src/main/java/edu/kit/formal/proofscriptparser/package-info.java
...n/java/edu/kit/formal/proofscriptparser/package-info.java
+23
-1
src/test/java/edu/kit/formal/proofscriptparser/ASTTest.java
src/test/java/edu/kit/formal/proofscriptparser/ASTTest.java
+25
-1
src/test/java/edu/kit/formal/proofscriptparser/BadExpressionTest.java
...a/edu/kit/formal/proofscriptparser/BadExpressionTest.java
+25
-1
src/test/java/edu/kit/formal/proofscriptparser/BadlyTypedExpression.java
...du/kit/formal/proofscriptparser/BadlyTypedExpression.java
+24
-0
src/test/java/edu/kit/formal/proofscriptparser/EqualsTest.java
...est/java/edu/kit/formal/proofscriptparser/EqualsTest.java
+25
-1
src/test/java/edu/kit/formal/proofscriptparser/GoodExpressionTest.java
.../edu/kit/formal/proofscriptparser/GoodExpressionTest.java
+25
-1
src/test/java/edu/kit/formal/proofscriptparser/ScriptTest.java
...est/java/edu/kit/formal/proofscriptparser/ScriptTest.java
+24
-0
src/test/java/edu/kit/formal/proofscriptparser/TestHelper.java
...est/java/edu/kit/formal/proofscriptparser/TestHelper.java
+24
-0
src/test/resources/edu/kit/formal/proofscriptparser/badexpr.txt
...st/resources/edu/kit/formal/proofscriptparser/badexpr.txt
+0
-1
No files found.
pom.xml
View file @
f3d39151
...
...
@@ -3,16 +3,20 @@
<modelVersion>
4.0.0
</modelVersion>
<groupId>
edu.kit.formal
</groupId>
<artifactId>
ScriptP
arser
</artifactId>
<artifactId>
proofscriptp
arser
</artifactId>
<version>
1.0-SNAPSHOT
</version>
<packaging>
jar
</packaging>
<name>
ScriptParser
</name>
<name>
ProofScriptParser
</name>
<description>
A parser and AST for the proof script language.
</description>
<url>
https://git.scc.kit.edu/sarah.grebing/ProofScriptParser
</url>
<developers>
<developer>
<name>
Sarah Grebing
</name>
<email>
sarah.grebing@ira.uka.de
</email>
<organization>
Karlruhe Institute of Technology
</organization>
</developer>
...
...
@@ -31,8 +35,8 @@
<name>
Application-oriented Formal Verification
</name>
<url>
http://formal.iti.kit.edu
</url>
</organization>
<inceptionYear>
2017
</inceptionYear>
<inceptionYear>
2017
</inceptionYear>
<licenses>
<license>
...
...
src/main/java/edu/kit/formal/proofscriptparser/ASTChanger.java
View file @
f3d39151
package
edu.kit.formal.proofscriptparser
;
/*-
* #%L
* ProofScriptParser
* %%
* Copyright (C) 2017 Application-oriented Formal Verification
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public
* License along with this program. If not, see
* <http://www.gnu.org/licenses/gpl-3.0.html>.
* #L%
*/
import
edu.kit.formal.proofscriptparser.ast.*
;
import
java.util.ArrayList
;
...
...
src/main/java/edu/kit/formal/proofscriptparser/ASTTraversal.java
View file @
f3d39151
package
edu.kit.formal.proofscriptparser
;
/*-
* #%L
* ProofScriptParser
* %%
* Copyright (C) 2017 Application-oriented Formal Verification
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public
* License along with this program. If not, see
* <http://www.gnu.org/licenses/gpl-3.0.html>.
* #L%
*/
import
edu.kit.formal.proofscriptparser.ast.*
;
/**
...
...
src/main/java/edu/kit/formal/proofscriptparser/DefaultASTVisitor.java
View file @
f3d39151
package
edu.kit.formal.proofscriptparser
;
/*-
* #%L
* ProofScriptParser
* %%
* Copyright (C) 2017 Application-oriented Formal Verification
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public
* License along with this program. If not, see
* <http://www.gnu.org/licenses/gpl-3.0.html>.
* #L%
*/
import
edu.kit.formal.proofscriptparser.ast.*
;
/**
...
...
@@ -83,3 +107,4 @@ public class DefaultASTVisitor<T> implements Visitor<T> {
return
null
;
}
}
src/main/java/edu/kit/formal/proofscriptparser/Facade.java
View file @
f3d39151
package
edu.kit.formal.proofscriptparser
;
/*-
* #%L
* ProofScriptParser
* %%
* Copyright (C) 2017 Application-oriented Formal Verification
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public
* License along with this program. If not, see
* <http://www.gnu.org/licenses/gpl-3.0.html>.
* #L%
*/
import
edu.kit.formal.proofscriptparser.ast.ASTNode
;
import
edu.kit.formal.proofscriptparser.ast.ProofScript
;
import
org.antlr.v4.runtime.*
;
...
...
src/main/java/edu/kit/formal/proofscriptparser/NotWelldefinedException.java
View file @
f3d39151
package
edu.kit.formal.proofscriptparser
;
/*-
* #%L
* ProofScriptParser
* %%
* Copyright (C) 2017 Application-oriented Formal Verification
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public
* License along with this program. If not, see
* <http://www.gnu.org/licenses/gpl-3.0.html>.
* #L%
*/
import
edu.kit.formal.proofscriptparser.ast.Expression
;
import
lombok.AllArgsConstructor
;
import
lombok.Data
;
...
...
src/main/java/edu/kit/formal/proofscriptparser/PrettyPrinter.java
View file @
f3d39151
package
edu.kit.formal.proofscriptparser
;
/*-
* #%L
* ProofScriptParser
* %%
* Copyright (C) 2017 Application-oriented Formal Verification
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public
* License along with this program. If not, see
* <http://www.gnu.org/licenses/gpl-3.0.html>.
* #L%
*/
import
edu.kit.formal.proofscriptparser.ast.*
;
import
lombok.Getter
;
import
lombok.Setter
;
...
...
src/main/java/edu/kit/formal/proofscriptparser/TransformAst.java
View file @
f3d39151
package
edu.kit.formal.proofscriptparser
;
/*-
* #%L
* ProofScriptParser
* %%
* Copyright (C) 2017 Application-oriented Formal Verification
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public
* License along with this program. If not, see
* <http://www.gnu.org/licenses/gpl-3.0.html>.
* #L%
*/
import
edu.kit.formal.proofscriptparser.ast.*
;
import
org.antlr.v4.runtime.ParserRuleContext
;
import
org.antlr.v4.runtime.tree.ErrorNode
;
...
...
src/main/java/edu/kit/formal/proofscriptparser/Visitable.java
View file @
f3d39151
package
edu.kit.formal.proofscriptparser
;
/*-
* #%L
* ProofScriptParser
* %%
* Copyright (C) 2017 Application-oriented Formal Verification
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public
* License along with this program. If not, see
* <http://www.gnu.org/licenses/gpl-3.0.html>.
* #L%
*/
/**
* An interface for all classes that can be visited by {@link Visitor}.
*
...
...
src/main/java/edu/kit/formal/proofscriptparser/Visitor.java
View file @
f3d39151
package
edu.kit.formal.proofscriptparser
;
/*-
* #%L
* ProofScriptParser
* %%
* Copyright (C) 2017 Application-oriented Formal Verification
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public
* License along with this program. If not, see
* <http://www.gnu.org/licenses/gpl-3.0.html>.
* #L%
*/
import
edu.kit.formal.proofscriptparser.ast.*
;
/**
...
...
src/main/java/edu/kit/formal/proofscriptparser/ast/ASTNode.java
View file @
f3d39151
package
edu.kit.formal.proofscriptparser.ast
;
/*-
* #%L
* ProofScriptParser
* %%
* Copyright (C) 2017 Application-oriented Formal Verification
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public
* License along with this program. If not, see
* <http://www.gnu.org/licenses/gpl-3.0.html>.
* #L%
*/
import
edu.kit.formal.proofscriptparser.Visitable
;
import
edu.kit.formal.proofscriptparser.Visitor
;
import
org.antlr.v4.runtime.ParserRuleContext
;
...
...
@@ -11,7 +35,7 @@ import java.util.Optional;
* @version 1 (27.04.17)
*/
public
abstract
class
ASTNode
<
T
extends
ParserRuleContext
>
implements
Visitable
,
C
loneable
{
implements
Visitable
,
C
opyable
<
ASTNode
<
T
>>
{
protected
T
ruleContext
;
protected
Position
startPosition
=
new
Position
();
protected
Position
endPosition
=
new
Position
();
...
...
@@ -54,6 +78,6 @@ public abstract class ASTNode<T extends ParserRuleContext>
* @return a fresh substree of the AST that is equal to this.
*/
@Override
public
abstract
ASTNode
<
T
>
c
lone
();
public
abstract
ASTNode
<
T
>
c
opy
();
}
src/main/java/edu/kit/formal/proofscriptparser/ast/AssignmentStatement.java
View file @
f3d39151
package
edu.kit.formal.proofscriptparser.ast
;
/*-
* #%L
* ProofScriptParser
* %%
* Copyright (C) 2017 Application-oriented Formal Verification
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public
* License along with this program. If not, see
* <http://www.gnu.org/licenses/gpl-3.0.html>.
* #L%
*/
import
edu.kit.formal.proofscriptparser.ScriptLanguageParser
;
import
edu.kit.formal.proofscriptparser.Visitor
;
import
lombok.*
;
...
...
@@ -31,8 +55,12 @@ public class AssignmentStatement
}
@Override
public
AssignmentStatement
clone
()
{
return
new
AssignmentStatement
(
lhs
.
clone
(),
rhs
.
clone
(),
type
);
public
AssignmentStatement
copy
()
{
AssignmentStatement
s
=
new
AssignmentStatement
();
s
.
lhs
=
lhs
.
copy
();
s
.
rhs
=
rhs
.
copy
();
s
.
type
=
type
;
return
s
;
}
/**
...
...
src/main/java/edu/kit/formal/proofscriptparser/ast/BinaryExpression.java
View file @
f3d39151
package
edu.kit.formal.proofscriptparser.ast
;
/*-
* #%L
* ProofScriptParser
* %%
* Copyright (C) 2017 Application-oriented Formal Verification
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public
* License along with this program. If not, see
* <http://www.gnu.org/licenses/gpl-3.0.html>.
* #L%
*/
import
edu.kit.formal.proofscriptparser.NotWelldefinedException
;
import
edu.kit.formal.proofscriptparser.Visitor
;
import
lombok.Data
;
...
...
@@ -32,8 +56,8 @@ public class BinaryExpression extends Expression<ParserRuleContext> {
* {@inheritDoc}
*/
@Override
public
BinaryExpression
c
lone
()
{
BinaryExpression
be
=
new
BinaryExpression
(
left
.
c
lone
(),
operator
,
right
.
clone
());
public
BinaryExpression
c
opy
()
{
BinaryExpression
be
=
new
BinaryExpression
(
left
.
c
opy
(),
operator
,
right
.
copy
());
return
be
;
}
...
...
src/main/java/edu/kit/formal/proofscriptparser/ast/BooleanLiteral.java
View file @
f3d39151
package
edu.kit.formal.proofscriptparser.ast
;
/*-
* #%L
* ProofScriptParser
* %%
* Copyright (C) 2017 Application-oriented Formal Verification
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public
* License along with this program. If not, see
* <http://www.gnu.org/licenses/gpl-3.0.html>.
* #L%
*/
import
edu.kit.formal.proofscriptparser.NotWelldefinedException
;
import
edu.kit.formal.proofscriptparser.Visitor
;
import
lombok.*
;
...
...
@@ -45,7 +69,7 @@ public class BooleanLiteral extends Literal {
* {@inheritDoc}
*/
@Override
public
BooleanLiteral
c
lone
()
{
public
BooleanLiteral
c
opy
()
{
return
new
BooleanLiteral
(
value
,
token
);
}
...
...
src/main/java/edu/kit/formal/proofscriptparser/ast/CallStatement.java
View file @
f3d39151
package
edu.kit.formal.proofscriptparser.ast
;
/*-
* #%L
* ProofScriptParser
* %%
* Copyright (C) 2017 Application-oriented Formal Verification
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public
* License along with this program. If not, see
* <http://www.gnu.org/licenses/gpl-3.0.html>.
* #L%
*/
import
edu.kit.formal.proofscriptparser.ScriptLanguageParser
;
import
edu.kit.formal.proofscriptparser.Visitor
;
import
lombok.*
;
...
...
@@ -38,7 +62,7 @@ public class CallStatement extends Statement<ScriptLanguageParser.ScriptCommandC
* {@inheritDoc}
*/
@Override
public
CallStatement
c
lone
()
{
return
new
CallStatement
(
command
,
parameters
.
c
lone
());
public
CallStatement
c
opy
()
{
return
new
CallStatement
(
command
,
parameters
.
c
opy
());
}
}
src/main/java/edu/kit/formal/proofscriptparser/ast/CaseStatement.java
View file @
f3d39151
package
edu.kit.formal.proofscriptparser.ast
;
/*-
* #%L
* ProofScriptParser
* %%
* Copyright (C) 2017 Application-oriented Formal Verification
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public
* License along with this program. If not, see
* <http://www.gnu.org/licenses/gpl-3.0.html>.
* #L%
*/
import
edu.kit.formal.proofscriptparser.ScriptLanguageParser
;
import
edu.kit.formal.proofscriptparser.Visitor
;
import
lombok.AllArgsConstructor
;
...
...
@@ -27,7 +51,7 @@ public class CaseStatement extends Statement<ScriptLanguageParser.CasesListConte
/**
* {@inheritDoc}
*/
@Override
public
CaseStatement
c
lone
()
{
return
new
CaseStatement
(
guard
.
c
lone
(),
body
.
clone
());
@Override
public
CaseStatement
c
opy
()
{
return
new
CaseStatement
(
guard
.
c
opy
(),
body
.
copy
());
}
}
src/main/java/edu/kit/formal/proofscriptparser/ast/CasesStatement.java
View file @
f3d39151
package
edu.kit.formal.proofscriptparser.ast
;
/*-
* #%L
* ProofScriptParser
* %%
* Copyright (C) 2017 Application-oriented Formal Verification
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public
* License along with this program. If not, see
* <http://www.gnu.org/licenses/gpl-3.0.html>.
* #L%
*/
import
edu.kit.formal.proofscriptparser.ScriptLanguageParser
;
import
edu.kit.formal.proofscriptparser.Visitor
;