enthought/enaml — Issue #13: Parsing error with single quoted string when there is no space after equals
Author: nmichaud
Created: 2011-11-05 01:46:16+00:00
State: open

The following:

defn MainWindow:
Window:
title = "Form Layout"
Label -> top_label:
text ='Personal Details'

gives the following parsing error:

Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/Current/bin/enaml-run", line 9, in
load_entry_point('enaml==0.1a', 'console_scripts', 'enaml-run')()
File "/Users/naveenm/Projects/enaml/enaml/runner.py", line 32, in main
ast = parse(enaml_code)
File "/Users/naveenm/Projects/enaml/enaml/parsing/parser.py", line 2126, in parse
return _parser.parse(tml, lexer=_lexer)
File "/Library/Frameworks/Python.framework/Versions/7.1/lib/python2.7/site-packages/ply/yacc.py", line 265, in parse
return self.parseopt_notrack(input,lexer,debug,tracking,tokenfunc)
File "/Library/Frameworks/Python.framework/Versions/7.1/lib/python2.7/site-packages/ply/yacc.py", line 1047, in parseopt_notrack
tok = self.errorfunc(errtoken)
File "/Users/naveenm/Projects/enaml/enaml/parsing/parser.py", line 2116, in p_error
raise_syntax_error('invalid syntax.', t)
File "/Users/naveenm/Projects/enaml/enaml/parsing/lexer.py", line 16, in raise_syntax_error
_raise_error(message, t, EnamlSyntaxError)
File "/Users/naveenm/Projects/enaml/enaml/parsing/lexer.py", line 12, in _raise_error
raise klass(message + ' - lineno: %s' % t.lineno)
enaml.exceptions.EnamlSyntaxError: invalid syntax. - lineno: 13