Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
trs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Taddeüs Kroes
trs
Commits
1c6c77ed
Commit
1c6c77ed
authored
Dec 12, 2011
by
Sander Mathijs van Veen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Print possibilities after each read() call.
parent
6c6d35a6
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
5 deletions
+17
-5
external/pybison
external/pybison
+1
-1
main.py
main.py
+5
-0
src/parser.py
src/parser.py
+11
-4
No files found.
pybison
@
282beeb2
Subproject commit
e1dc885322fba639d6447c76e0ecf65896502b97
Subproject commit
282beeb275a9dde703523670a77c4449ce1decf8
main.py
0 → 100755
View file @
1c6c77ed
#!/usr/bin/python
from
src.parser
import
main
if
__name__
==
'__main__'
:
main
()
src/parser.py
View file @
1c6c77ed
...
...
@@ -144,6 +144,13 @@ class Parser(BisonParser):
data
=
data_after
if
self
.
interactive
:
if
not
self
.
possibilities
:
print
'possibilities: None'
else
:
print
'possibilities:'
print
self
.
possibilities
return
data
def
hook_handler
(
self
,
target
,
option
,
names
,
values
,
retval
):
...
...
@@ -155,6 +162,9 @@ class Parser(BisonParser):
return
retval
def
hook_run
(
self
,
filename
,
retval
):
return
retval
# ---------------------------------------------------------------
# These methods are the python handlers for the bison targets.
# (which get called by the bison code each time the corresponding
...
...
@@ -390,8 +400,5 @@ def main():
if
interactive
:
print
return
node
if
__name__
==
'__main__'
:
main
()
return
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