Mercurial > lcfOS
diff python/yacc.py @ 322:44f336460c2a
Half of use of burg spec for arm
author | Windel Bouwman |
---|---|
date | Mon, 27 Jan 2014 19:58:07 +0100 |
parents | 8c569fbe60e4 |
children | e9fe6988497c |
line wrap: on
line diff
--- a/python/yacc.py Sun Jan 19 18:48:45 2014 +0100 +++ b/python/yacc.py Mon Jan 27 19:58:07 2014 +0100 @@ -261,6 +261,7 @@ for n in range(M): semantics = semantics.replace('${}'.format(n + 1), 'arg{}'.format(n + 1)) self.print(' {}'.format(semantics)) + self.print('') def make_argument_parser(): @@ -270,6 +271,7 @@ help='the parser specification') parser.add_argument('-o', '--output', type=argparse.FileType('w'), \ default=sys.stdout) + return parser def load_as_module(filename):