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
nomad-lab
parser-exciting
Commits
92a0c8cb
Commit
92a0c8cb
authored
Nov 30, 2016
by
Pardini, Lorenzo (lopa)
Browse files
fix debug
parent
f6687427
Changes
1
Hide whitespace changes
Inline
Side-by-side
parser/parser-exciting/parser_exciting.py
View file @
92a0c8cb
...
...
@@ -396,13 +396,13 @@ if __name__ == "__main__":
# print 'nameo', name
# Production
#
mainFunction(mainFileDescription, metaInfoEnv, parserInfo, cachingLevelForMetaName = cachingLevelForMetaName, superContext=ExcitingParserContext())
mainFunction
(
mainFileDescription
,
metaInfoEnv
,
parserInfo
,
cachingLevelForMetaName
=
cachingLevelForMetaName
,
superContext
=
ExcitingParserContext
())
# Debug
local_backend
=
LocalBackend
(
metaInfoEnv
)
mainFunction
(
mainFileDescription
,
metaInfoEnv
,
parserInfo
,
outF
=
local_backend
.
fileOut
,
cachingLevelForMetaName
=
cachingLevelForMetaName
,
superContext
=
ExcitingParserContext
(),
superBackend
=
local_backend
)
results
=
local_backend
.
results
program_name
=
results
[
"program_name"
]
atom_labels
=
results
[
"atom_labels"
]
print
(
program_name
)
print
(
atom_labels
)
#
local_backend = LocalBackend(metaInfoEnv)
#
mainFunction(mainFileDescription, metaInfoEnv, parserInfo, outF=local_backend.fileOut, cachingLevelForMetaName = cachingLevelForMetaName, superContext=ExcitingParserContext(), superBackend=local_backend)
#
results = local_backend.results
#
program_name = results["program_name"]
#
atom_labels = results["atom_labels"]
#
print(program_name)
#
print(atom_labels)
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