Mercurial > hg > Members > shinya > pyrect
changeset 22:5149b48b22a9
bug fix: c_translator.py, grep_translator.py
author | Ryoma SHINYA <shinya@firefly.cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 05 Jul 2010 20:30:14 +0900 |
parents | a24acddedf89 |
children | 3ac5cabb2d76 |
files | src/c_translator.py src/grep_translator.py |
diffstat | 2 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/c_translator.py Mon Jul 05 19:54:27 2010 +0900 +++ b/src/c_translator.py Mon Jul 05 20:30:14 2010 +0900 @@ -59,8 +59,7 @@ }\n\n""") def emit_switch(self, case, default=None): - self.emit("\tswitch(s++) {\n") - + self.emit("\tswitch(*s++) {\n") for input, next_states in case.iteritems(): if input != '': self.emit("\t\tcase '%s': \n" % (input))