Remove quotation from strings.

pull/15/head
Jussi Pakkanen 12 years ago
parent 5e0888c3db
commit d86b664b28
  1. 6
      builder.py

@ -44,10 +44,14 @@ t_ATOM = '[a-zA-Z][_0-9a-zA-Z]*'
t_COMMENT = '\#[^\n]*'
t_COMMA = ','
t_DOT = '\.'
t_STRING = "'[^']*'"
t_ignore = ' \t'
def t_STRING(t):
"'[^']*'"
t.value = t.value[1:-1]
return t
def t_EOL(t):
r'\n'
t.lexer.lineno += 1

Loading…
Cancel
Save