diff options
| author | Jussi Pakkanen <jpakkane@gmail.com> | 2012-12-25 19:23:33 +0200 |
|---|---|---|
| committer | Jussi Pakkanen <jpakkane@gmail.com> | 2012-12-25 19:23:33 +0200 |
| commit | d86b664b2853a110a13f14fd29faa26a6437bc04 (patch) | |
| tree | 90e02a22728eb155f3880b9aef77bc8a8e4538d7 | |
| parent | 5e0888c3db68fa1f238df34fccad284addf95d6a (diff) | |
| download | meson-d86b664b2853a110a13f14fd29faa26a6437bc04.tar.gz | |
Remove quotation from strings.
| -rwxr-xr-x | builder.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/builder.py b/builder.py index d0c3b9d97..accc8fc32 100755 --- a/builder.py +++ b/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 |
