Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pybison
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
pybison
Commits
2ae8c15d
Commit
2ae8c15d
authored
Dec 09, 2011
by
Sander Mathijs van Veen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set default node class to BisonNode instead of None.
parent
1bd7873d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
src/python/bison.py
src/python/bison.py
+2
-6
No files found.
src/python/bison.py
View file @
2ae8c15d
...
...
@@ -21,7 +21,7 @@ import sys
import
traceback
from
bison_
import
ParserEngine
from
.node
import
BisonNode
class
BisonSyntaxError
(
Exception
):
pass
...
...
@@ -100,7 +100,7 @@ class BisonParser(object):
# Class to use by default for creating new parse nodes. If set to None,
# BisonNode will be used.
default_node_class
=
Non
e
default_node_class
=
BisonNod
e
def
__init__
(
self
,
**
kw
):
"""
...
...
@@ -184,10 +184,6 @@ class BisonParser(object):
if
self
.
verbose
:
print
'no handler for %s, using default'
%
targetname
if
not
self
.
default_node_class
:
from
.node
import
BisonNode
self
.
default_node_class
=
BisonNode
self
.
last
=
self
.
default_node_class
(
targetname
,
option
=
option
,
names
=
names
,
values
=
values
)
...
...
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