Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Anders Nilsson
OwlCompiler
Commits
120386a7
Commit
120386a7
authored
Apr 01, 2007
by
Anders Nilsson
Browse files
Synching
parent
77e30aa3
Changes
1
Hide whitespace changes
Inline
Side-by-side
siaras/SkillserverInterface.jrag
View file @
120386a7
...
...
@@ -8,10 +8,22 @@
aspect SkillserverInterface {
public Thing ASTNode.getIndividual(String id) {
System.out.println("foo
"
);
System.out.println("foo
: "+this
);
for (int i=0; i<getNumChild(); i++) {
Thing t = getChild(i).getIndividual(id);
if (t!=null) {
System.out.println("Found: "+t);
return t;
}
}
return null;
}
public Thing Start.getIndividual(String id) {
for (int i=0; i<getNumElement(); i++) {
Thing t = getElement(i).getIndividual(id);
if (t!=null) {
System.out.println("Found: "+t);
return t;
}
}
...
...
@@ -27,3 +39,10 @@ aspect SkillserverInterface {
}
}
}
aspect PrettyPrinter {
public void Start.prettyPrint() {
System.out.println("PrettyPrinting");
prettyPrint("",System.out);
}
}
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