Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
nomad-lab
parser-fplo
Commits
067ffa6e
Commit
067ffa6e
authored
Nov 06, 2016
by
Henning Glawe
Browse files
implement declaration_nomadmetainfo for AST_section
parent
d198337f
Changes
1
Hide whitespace changes
Inline
Side-by-side
parser/parser-fplo/FploInputParser.py
View file @
067ffa6e
...
...
@@ -262,7 +262,16 @@ class AST_block(AST_node):
class
AST_section
(
AST_block
):
"""section block (sequence of statements) in AST"""
pass
def
declaration_nomadmetainfo
(
self
,
output_file
,
namespace
):
thisname
=
namespace
+
'.'
+
self
.
name
output_file
.
write
((
', {
\n
'
+
' "description": "FPLO input section %s",
\n
'
+
' "name": "%s",
\n
'
+
' "kindStr": "type_section",
\n
'
+
' "superNames": [ "%s" ]
\n
'
+
'}'
)
%
(
thisname
,
thisname
,
namespace
))
AST_block
.
declaration_nomadmetainfo
(
self
,
output_file
,
namespace
)
class
AST_datatype
(
AST_node
):
...
...
Write
Preview
Markdown
is supported
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