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
78ce89f7
Commit
78ce89f7
authored
Nov 10, 2017
by
Alexander Weigl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
functions in prettyprinter
parent
5a85236f
Pipeline
#15296
failed with stages
in 1 minute and 27 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
2 deletions
+15
-2
lang/src/main/java/edu/kit/iti/formal/psdbg/parser/ASTDiff.java
...rc/main/java/edu/kit/iti/formal/psdbg/parser/ASTDiff.java
+1
-1
lang/src/main/java/edu/kit/iti/formal/psdbg/parser/PrettyPrinter.java
...n/java/edu/kit/iti/formal/psdbg/parser/PrettyPrinter.java
+14
-1
No files found.
lang/src/main/java/edu/kit/iti/formal/psdbg/parser/ASTDiff.java
View file @
78ce89f7
...
...
@@ -2,7 +2,7 @@ package edu.kit.iti.formal.psdbg.parser;
import
edu.kit.iti.formal.psdbg.parser.ast.*
;
public
class
ASTDiff
implements
Visitor
<
ASTNode
>
{
public
class
ASTDiff
extends
DefaultAST
Visitor
<
ASTNode
>
{
private
ASTNode
other
;
private
ProofScript
newScript
;
...
...
lang/src/main/java/edu/kit/iti/formal/psdbg/parser/PrettyPrinter.java
View file @
78ce89f7
...
...
@@ -166,7 +166,7 @@ public class PrettyPrinter extends DefaultASTVisitor<Void> {
}
/* if (casesStatement.getDefaultCase() != null) {
s.append("default {");
casesStatement.getDefaultCase().
accep
t(this);
casesStatement.getDefaultCase().
visi
t(this);
cl();
s.append("}");
}*/
...
...
@@ -271,6 +271,19 @@ public class PrettyPrinter extends DefaultASTVisitor<Void> {
}
@Override
public
Void
visit
(
FunctionCall
func
)
{
s
.
append
(
func
.
getFunction
().
getName
())
.
append
(
'('
);
func
.
getArguments
().
forEach
(
a
->
{
a
.
accept
(
this
);
s
.
append
(
", "
);
});
s
.
delete
(
s
.
length
()
-
3
,
s
.
length
()
-
1
);
//delete last ', '
s
.
append
(
')'
);
return
null
;
}
@Override
public
Void
visit
(
Parameters
parameters
)
{
int
nl
=
getLastNewline
();
...
...
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