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
4f4da020
Commit
4f4da020
authored
Dec 19, 2006
by
Anders Nilsson
Browse files
Synching
parent
29019af5
Changes
1
Hide whitespace changes
Inline
Side-by-side
CompilerGeneration.jrag
View file @
4f4da020
...
...
@@ -332,15 +332,19 @@ aspect GenMisc {
pStream.println(ind(2)+"return b.toString().trim();");
pStream.println(ind(1)+"}");
pStream.println();
// SimpleElement.value()
pStream.println(ind(1)+"syn String SimpleElement.value() = \"\";");
pStream.println(ind(1)+"eq StringElement.value() = getIDENTIFIER();");
pStream.println(ind(1)+"eq IntElement.value() = getINTEGER_LITERAL();");
pStream.println(ind(1)+"eq FloatElement.value() = getFLOAT_LITERAL();");
// Thing.isTopElement()
pStream.println(ind(1)+"boolean Thing.isTopElement() {");
pStream.println(ind(2)+"return getParent().getParent() instanceof Start;");
pStream.println(ind(1)+"}");
// ASTNode.getStart()
pStream.println(ind(1)+"Start ASTNode.getStart() {");
pStream.println(ind(2)+"return getParent().getStart();");
pStream.println(ind(1)+"}");
...
...
@@ -348,6 +352,7 @@ aspect GenMisc {
pStream.println(ind(2)+"return this;");
pStream.println(ind(1)+"}");
// ComplexElement.name()
pStream.println(ind(1)+"String ComplexElement.name() {");
pStream.println(ind(2)+"return getOwlIdentifier().getIDENTIFIER();");
pStream.println(ind(1)+"}");
...
...
@@ -355,6 +360,8 @@ aspect GenMisc {
pStream.println(ind(2)+"return getValue().getSTRING_LITERAL();");
pStream.println(ind(1)+"}");
// ClassUse.decl()
super.genMisc(pStream);
pStream.println("}");
...
...
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