Skip to content

Fix for expressions containing Keyword not successfully graphing.#21

Open
jstoker wants to merge 1 commit intojavawizard:masterfrom
jstoker:fix-keyword-graph
Open

Fix for expressions containing Keyword not successfully graphing.#21
jstoker wants to merge 1 commit intojavawizard:masterfrom
jstoker:fix-keyword-graph

Conversation

@jstoker
Copy link
Collaborator

@jstoker jstoker commented Oct 8, 2019

Hi,

When trying to graph a Keyword() instance, an exception is thrown.

Sample code:

> from parcon import *
> Keyword(Literal('a'), Literal('b')).graph()

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "parcon/graph.py", line 57, in graph
    new_list += graphable.do_graph(graph)
  File "parcon/__init__.py", line 1478, in do_graph
    graph.add_node(id(self), id(self.parser), label="parser")
TypeError: add_node() takes exactly 2 arguments (4 given)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments