summaryrefslogtreecommitdiffstats
path: root/eshtrans/main.esh
Commit message (Collapse)AuthorAgeFilesLines
* eshtrans: Fix esh_parse() call when no -o option is givenP. J. McDermott2016-02-281-1/+3
|
* eshtrans: Preserve trailing whitespace in input filesP. J. McDermott2016-02-281-3/+7
|
* [WIP] eshtrans/frontend: Split input into internal char arrayP. J. McDermott2016-02-271-3/+3
|
* eshtrans: Add proper user interfaceP. J. McDermott2016-02-211-95/+69
|
* eshtrans/frontend: Fix line numbersP. J. McDermott2016-02-211-1/+3
|
* eshtrans: Accept any input fileP. J. McDermott2016-02-211-3/+5
| | | | eshtrans is now able to compile itself.
* eshtrans/frontend: Handle T_IO_NUMBERsP. J. McDermott2016-02-211-1/+4
| | | | Also fix a couple bugs in accept().
* eshtrans/frontend: Don't trim trailing tokens from scannersP. J. McDermott2016-02-211-2/+7
| | | | | | | | | | | | | | | | | | 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/backend: Don't add a space after "("P. J. McDermott2016-02-211-4/+3
|
* eshtrans/frontend: Count singly quoted newlinesP. J. McDermott2016-02-211-2/+3
|
* eshtrans/frontend: Fix handling of single quote in double quotesP. J. McDermott2016-02-211-2/+6
|
* eshtrans/frontend: Don't eat char after wordexp in arithmeticP. J. McDermott2016-02-211-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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))
* eshtrans/frontend: Fix handling of words beginning with "\"P. J. McDermott2016-02-211-3/+5
|
* eshtrans: Add tests with comments and leading linebreaksP. J. McDermott2016-02-211-1/+4
|
* Copy everything into a new eshtrans/ directoryP. J. McDermott2016-02-211-0/+101
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.)