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
2b273a00
Commit
2b273a00
authored
Dec 04, 2006
by
Anders Nilsson
Browse files
Added prettyprinting of attributes
parent
2c2fb5ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
CompilerGeneration.jrag
View file @
2b273a00
...
@@ -135,6 +135,11 @@ aspect GenPrettyPrinter {
...
@@ -135,6 +135,11 @@ aspect GenPrettyPrinter {
pStream.println(" getElement(i).prettyPrint(indent,pStream);");
pStream.println(" getElement(i).prettyPrint(indent,pStream);");
pStream.println(" }");
pStream.println(" }");
pStream.println(" }\n");
pStream.println(" }\n");
pStream.println(" syn String Attribute.id() = \"\";");
pStream.println(" eq RdfId.id() = \"Rdf:ID\";");
pStream.println(" public void Attribute.prettyPrint(String indent, PrintStream pStream) {");
pStream.println(" System.out.print(\" \"+id()+\"=\"+getValue().getSTRING_LITERAL());");
pStream.println(" }\n");
super.genPrettyPrinter(pStream);
super.genPrettyPrinter(pStream);
pStream.println("}\n");
pStream.println("}\n");
}
}
...
...
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