summaryrefslogtreecommitdiffstats
path: root/parsing/parse.sh
Commit message (Collapse)AuthorAgeFilesLines
* accept(): Use toktext()P. J. McDermott2016-02-211-2/+4
|
* Add a couple more testsP. J. McDermott2016-02-211-1/+3
|
* Don't loop forever on unterminated singly quoted string in wordsP. J. McDermott2016-02-211-4/+5
|
* Improve backslash and quote handling in wordsP. J. McDermott2016-02-211-5/+9
|
* Preserve leading backslashes in wordsP. J. McDermott2016-02-211-0/+4
|
* Remove quotes in here-document delimitersP. J. McDermott2016-02-211-2/+2
|
* Improve demo outputP. J. McDermott2016-02-211-5/+8
|
* Fix handling of multiple here-documents on a lineP. J. McDermott2016-02-211-4/+5
|
* Implement here-documentP. J. McDermott2016-02-211-4/+8
| | | | Also fix some I/O redirection operator bugs.
* Implement arithmetic expansionP. J. McDermott2016-02-201-6/+10
|
* scan_wordexp_param_brace(): New functionP. J. McDermott2016-02-201-11/+11
|
* Rewrite codegenP. J. McDermott2016-02-201-0/+2
| | | | | | | | The previous version didn't handle nested or multiple command substitutions. The stack format has also been extended to support arithmetic expansions.
* Move parse_sub() logic into lexerP. J. McDermott2016-02-201-41/+4
| | | | | | | | | | 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 substitutionP. J. McDermott2016-02-201-5/+13
|
* Fix command substitution (warning: still ugly)P. J. McDermott2016-02-201-1/+6
|
* Implement command substitution (warning: ugly and broken)P. J. McDermott2016-02-201-6/+16
|
* Add code generationP. J. McDermott2016-02-201-6/+12
|
* Prepare for command substitutionP. J. McDermott2016-02-201-4/+18
|
* Fix function definition parsingP. J. McDermott2016-02-201-0/+2
| | | | Well that was easy.
* Fully trace most parser functionsP. J. McDermott2016-02-201-26/+114
|
* Fix command separationP. J. McDermott2016-02-201-9/+17
| | | | | | `foo bar ( baz )` no longer gets parsed as `foo bar` and `( baz )`. Also restrict function names.
* Fix function definitions (almost)P. J. McDermott2016-02-201-20/+12
|
* Implement I/O operator parsingP. J. McDermott2016-02-201-9/+40
|
* Implement "case" constructP. J. McDermott2016-02-201-6/+40
|
* Implement (non-functional) function handlingP. J. McDermott2016-02-201-4/+14
|
* Implement "while" and "until" loopsP. J. McDermott2016-02-201-5/+15
|
* Implement "if" constructP. J. McDermott2016-02-201-2/+21
|
* Rearrange command()P. J. McDermott2016-02-201-4/+6
|
* Fix handling of unexpected EOFP. J. McDermott2016-02-201-7/+7
|
* Improve error when expecting EOFP. J. McDermott2016-02-201-1/+3
|
* Check only first word of simple commands for reseserved wordsP. J. McDermott2016-02-201-1/+1
|
* Fix T_LBRACE, T_RBRACE, and T_BANG recognitionP. J. McDermott2016-02-201-2/+2
|
* Delimit words at unescaped operatorsP. J. McDermott2016-02-191-1/+2
| | | | Also expect EOF at end of script.
* Improve reserved word recognitionP. J. McDermott2016-02-191-3/+18
| | | | | | And fix term() to allow do_group() to find T_DONE. Also, ERMAHGERD DEBERG.
* Add more productions, special tokens, etc.P. J. McDermott2016-02-191-11/+280
|
* Add error handling to lexerP. J. McDermott2016-02-191-18/+45
|
* [WIP] Add lexer/parser demoP. J. McDermott2016-02-191-0/+133