Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

minor updates #191

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions smop/__main__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from .main import main

if __name__ == '__main__':
main()

4 changes: 2 additions & 2 deletions smop/resolve.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def resolve(t, symtab=None, fp=None, func_name=None):
G = as_networkx(t)
for n in G.nodes():
print(n.__class__.__name__)
u = G.node[n]["ident"]
u = G.nodes[n]["ident"]
if u.props:
pass
elif G.out_edges(n) and G.in_edges(n):
Expand All @@ -63,7 +63,7 @@ def resolve(t, symtab=None, fp=None, func_name=None):
u.props = "R" # ref
else:
u.props = "F" # ???
G.node[n]["label"] = "%s\\n%s" % (n, u.props)
G.nodes[n]["label"] = "%s\\n%s" % (n, u.props)
return G

def do_resolve(t,symtab):
Expand Down