Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | accept(): Use toktext() | P. J. McDermott | 2016-02-21 | 1 | -3/+3 |
| | |||||
* | Don't loop forever on unterminated singly quoted string in words | P. J. McDermott | 2016-02-21 | 1 | -3/+9 |
| | |||||
* | Improve backslash and quote handling in words | P. J. McDermott | 2016-02-21 | 1 | -0/+21 |
| | |||||
* | Preserve leading backslashes in words | P. J. McDermott | 2016-02-21 | 1 | -3/+5 |
| | |||||
* | Remove quotes in here-document delimiters | P. J. McDermott | 2016-02-21 | 1 | -1/+2 |
| | |||||
* | Fix handling of newlines with here-documents | P. J. McDermott | 2016-02-21 | 1 | -12/+8 |
| | | | | | Sequential here-documents were getting indented. Everything after a newline was being considered a here-document. | ||||
* | Fix handling of multiple here-documents on a line | P. J. McDermott | 2016-02-21 | 1 | -41/+39 |
| | |||||
* | Implement here-document | P. J. McDermott | 2016-02-21 | 1 | -0/+148 |
| | | | | Also fix some I/O redirection operator bugs. | ||||
* | Implement arithmetic expansion | P. J. McDermott | 2016-02-20 | 1 | -3/+58 |
| | |||||
* | Reticulate splines | P. J. McDermott | 2016-02-20 | 1 | -8/+6 |
| | |||||
* | scan_wordexp_param_brace(): New function | P. J. McDermott | 2016-02-20 | 1 | -112/+126 |
| | |||||
* | scan_wordexp(): Catch and rethrow some uncaught exceptions | P. J. McDermott | 2016-02-20 | 1 | -3/+10 |
| | |||||
* | Rewrite codegen | P. J. McDermott | 2016-02-20 | 1 | -1/+2 |
| | | | | | | | | The previous version didn't handle nested or multiple command substitutions. The stack format has also been extended to support arithmetic expansions. | ||||
* | s/pgetc/lgetc/ | P. J. McDermott | 2016-02-20 | 1 | -47/+47 |
| | | | | It reads input characters for the lexer, not the parser. | ||||
* | Organize lexer functions | P. J. McDermott | 2016-02-20 | 1 | -44/+64 |
| | |||||
* | Move parse_sub() logic into lexer | P. J. McDermott | 2016-02-20 | 1 | -22/+44 |
| | | | | | | | | | | Now the parser starts the lexer, which in turn starts the parser. Previously, the parser started both the lexer and itself and then asked the lexer all kinds of personal questions, like "Where are you?", "Whatcha doin'?", and "What are you wearing?". No one wants to know what their lexer is wearing. Seriously, don't ask. Parsers should mind their own business. Social interactions and personal questions between code modules should be kept to a minimum. | ||||
* | Don't eat the first token after a command substitution | P. J. McDermott | 2016-02-20 | 1 | -11/+2 |
| | |||||
* | Remove some "echo"s | P. J. McDermott | 2016-02-20 | 1 | -2/+0 |
| | |||||
* | Implement command substitution (warning: ugly and broken) | P. J. McDermott | 2016-02-20 | 1 | -4/+47 |
| | |||||
* | Prepare for command substitution | P. J. McDermott | 2016-02-20 | 1 | -2/+16 |
| | |||||
* | Check only first word of simple commands for reseserved words | P. J. McDermott | 2016-02-20 | 1 | -2/+4 |
| | |||||
* | Fix T_LBRACE, T_RBRACE, and T_BANG recognition | P. J. McDermott | 2016-02-20 | 1 | -2/+2 |
| | |||||
* | Delimit words at unescaped operators | P. J. McDermott | 2016-02-19 | 1 | -1/+1 |
| | | | | Also expect EOF at end of script. | ||||
* | Improve reserved word recognition | P. J. McDermott | 2016-02-19 | 1 | -11/+32 |
| | | | | | | And fix term() to allow do_group() to find T_DONE. Also, ERMAHGERD DEBERG. | ||||
* | Add more productions, special tokens, etc. | P. J. McDermott | 2016-02-19 | 1 | -1/+44 |
| | |||||
* | Recognize reserved words | P. J. McDermott | 2016-02-19 | 1 | -7/+28 |
| | |||||
* | Add missing I/O tokens | P. J. McDermott | 2016-02-19 | 1 | -11/+29 |
| | |||||
* | Add error handling to lexer | P. J. McDermott | 2016-02-19 | 1 | -46/+107 |
| | |||||
* | [WIP] Add lexer/parser demo | P. J. McDermott | 2016-02-19 | 1 | -0/+457 |