Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
victorlei committed Oct 16, 2014
1 parent b5a4f21 commit f438067
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion smop/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
OCTAVE = ~/octave-3.8.2/scripts
CYTHON = cython
PYTHON = python
FLAGS = --syntax-errors=stft.m
FLAGS = -S stft.m -X orderfields.m,legend.m
V = 2.7

go_so: solver.so
Expand Down
12 changes: 8 additions & 4 deletions smop/parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,13 +158,17 @@ def p_command(p):
p[0] = node.funcall(p[1],p[2])

####################
def p_init_opt(p):
"""init_opt :
| EQ expr
"""
def p_global_list(p):
"""global_list : ident
| global_list ident
"""global_list : ident init_opt
| global_list ident init_opt
"""
if len(p) == 2:
if len(p) == 3:
p[0] = node.global_list([p[1]])
elif len(p) == 3:
elif len(p) == 4:
p[0] = p[1]
p[0].append(p[2])

Expand Down

0 comments on commit f438067

Please sign in to comment.