summaryrefslogtreecommitdiffstats
path: root/parsing/lexer.sh
Commit message (Collapse)AuthorAgeFilesLines
* Move parse_sub() logic into lexerP. J. McDermott2016-02-201-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 substitutionP. J. McDermott2016-02-201-11/+2
|
* Remove some "echo"sP. J. McDermott2016-02-201-2/+0
|
* Implement command substitution (warning: ugly and broken)P. J. McDermott2016-02-201-4/+47
|
* Prepare for command substitutionP. J. McDermott2016-02-201-2/+16
|
* Check only first word of simple commands for reseserved wordsP. J. McDermott2016-02-201-2/+4
|
* 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/+1
| | | | Also expect EOF at end of script.
* Improve reserved word recognitionP. J. McDermott2016-02-191-11/+32
| | | | | | 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-1/+44
|
* Recognize reserved wordsP. J. McDermott2016-02-191-7/+28
|
* Add missing I/O tokensP. J. McDermott2016-02-191-11/+29
|
* Add error handling to lexerP. J. McDermott2016-02-191-46/+107
|
* [WIP] Add lexer/parser demoP. J. McDermott2016-02-191-0/+457