Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
OwlCompiler
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Anders Nilsson
OwlCompiler
Commits
10b12bd8
Commit
10b12bd8
authored
18 years ago
by
Anders Nilsson
Browse files
Options
Downloads
Patches
Plain Diff
Hacked PrettyPrinter generation so that it at least prints something for every type in the ontology
parent
f837e8e7
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
CompilerGeneration.jrag
+6
-6
6 additions, 6 deletions
CompilerGeneration.jrag
with
6 additions
and
6 deletions
CompilerGeneration.jrag
+
6
−
6
View file @
10b12bd8
...
...
@@ -129,13 +129,13 @@ aspect GenPrettyPrinter {
pStream.print(" public void "+name());
pStream.println(".prettyPrint(String indent, PrintStream pStream) {");
pStream.print(" System.out.println(indent+\"<"+name());
for (int i=0; i<getNumAttribute(); i++) {
getAttribute(i).genPrettyPrinter(ind,pStream);
}
//
for (int i=0; i<getNumAttribute(); i++) {
//
getAttribute(i).genPrettyPrinter(ind,pStream);
//
}
pStream.println(">\");");
for (int i=0; i<getNumElement(); i++) {
getElement(i).
genP
rettyPrint
er
(ind,pStream);
}
pStream.println("
for (int i=0; i<getNumElement(); i++) {
");
pStream.println("
getElement(i).
p
rettyPrint(ind
ent
,pStream);
");
pStream.println(" }");
pStream.println(" System.out.println(indent+\"</"+name()+">\");");
pStream.println("}\n");
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment