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
Anders Nilsson
OwlCompiler
Commits
e5a44589
Commit
e5a44589
authored
Dec 03, 2006
by
Anders Nilsson
Browse files
Synching
parent
dea65328
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
CompilerGeneration.jrag
View file @
e5a44589
...
@@ -130,6 +130,11 @@ aspect GenPrettyPrinter {
...
@@ -130,6 +130,11 @@ aspect GenPrettyPrinter {
pStream.println(" getChild(i).prettyPrint(indent,pStream);");
pStream.println(" getChild(i).prettyPrint(indent,pStream);");
pStream.println(" }");
pStream.println(" }");
pStream.println(" }\n");
pStream.println(" }\n");
pStream.println(" public void Start.prettyPrint(String indent, PrintStream pStream) {");
pStream.println(" for (int i=0; i<getNumElement(); i++) {");
pStream.println(" getElement(i).prettyPrint(indent,pStream);");
pStream.println(" }");
pStream.println(" }\n");
super.genPrettyPrinter(ind,pStream);
super.genPrettyPrinter(ind,pStream);
pStream.println("}\n");
pStream.println("}\n");
}
}
...
@@ -143,6 +148,10 @@ aspect GenPrettyPrinter {
...
@@ -143,6 +148,10 @@ aspect GenPrettyPrinter {
// }
// }
pStream.println(">\");");
pStream.println(">\");");
pStream.println(" String childIndent = indent + \" \";");
pStream.println(" String childIndent = indent + \" \";");
Restrictions restr = getRestrictions();
for (int i=0; i<restr.getNumRestriction(); i++) {
}
pStream.println(" for (int i=0; i<getNumElement(); i++) {");
pStream.println(" for (int i=0; i<getNumElement(); i++) {");
pStream.println(" getElement(i).prettyPrint(childIndent,pStream);");
pStream.println(" getElement(i).prettyPrint(childIndent,pStream);");
pStream.println(" }");
pStream.println(" }");
...
...
owl.ast
View file @
e5a44589
...
@@ -82,6 +82,6 @@ abstract OwlValuesFrom: ComplexElement;
...
@@ -82,6 +82,6 @@ abstract OwlValuesFrom: ComplexElement;
Properties ::= Property:Element*;
Properties ::= Property:Element*;
//
Restrictions ::= OwlRestriction*;
Restrictions ::= OwlRestriction*;
abstract OwlProperty : ComplexElement;
abstract OwlProperty : ComplexElement;
siaras/GeneratedAspects.jrag
View file @
e5a44589
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
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