| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
| |
eshtrans is now able to compile itself.
|
| |
|
|
|
|
| |
Also fix a couple bugs in accept().
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Before we'd get things like this:
Input: $(foo bar)
Output: $(foo )
Input: $(($(foo bar) + 1))
Output: $(($(foo ) + 1))
Now we get things like this:
Input: $(foo bar)
Output: $(foo bar )
Input: $(($(foo bar) + 1))
Output: $(($(foo bar ) + 1))
|
| |
|
| |
|
|
|
|
|
| |
eshtrans caught an actual syntax error in itself (!), although oddly
other shells didn't consider this an error.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Before:
Trying script:
$(($foo + 1))
Tokens: T_FNAME<US>$(($foo+ 1))<RS>T_NEWLINE<RS>T_EOF<RS>
Token: function name
"$(($foo+ 1))"
Token: newline
Token: end of file
Generated code:
$(($foo+ 1))
Trying script:
$((1 + $foo))
stdin:1: Syntax error: Arithmetic expansion: ")" unexpected
FAIL
After:
Trying script:
$(($foo + 1))
Tokens: T_FNAME<US>$(($foo + 1))<RS>T_NEWLINE<RS>T_EOF<RS>
Token: function name
"$(($foo + 1))"
Token: newline
Token: end of file
Generated code:
$(($foo + 1))
Trying script:
$((1 + $foo))
Tokens: T_FNAME<US>$((1 + $foo))<RS>T_NEWLINE<RS>T_EOF<RS>
Token: function name
"$((1 + $foo))"
Token: newline
Token: end of file
Generated code:
$((1 + $foo))
|
| |
|
| |
|
| |
|
|
Split out and rename functions and variables where appropriate.
Also add license headers. (The old scripts under parsing/ can be used
under the same license.)
|