Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Robotlab
labcomm-core
Commits
face8211
Commit
face8211
authored
Feb 23, 2015
by
Sven Gestegård Robertz
Browse files
ASTbuilder: fix to make it build SampleDecls
parent
3fbc9aee
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/java/se/lth/control/labcomm/ASTbuilder.java
View file @
face8211
...
...
@@ -124,8 +124,13 @@ public class ASTbuilder implements TypeDefParser.ParsedSymbolVisitor {
public
Decl
makeDecl
(
TypeDefParser
.
ParsedTypeDef
d
)
{
Decl
result
;
d
.
getType
().
accept
(
this
);
Decl
result
=
new
TypeDecl
(
typeStack
.
pop
(),
d
.
getName
());
if
(
d
.
isSampleDef
())
{
result
=
new
SampleDecl
(
typeStack
.
pop
(),
d
.
getName
());
}
else
{
result
=
new
TypeDecl
(
typeStack
.
pop
(),
d
.
getName
());
}
return
result
;
}
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment