aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/rc/parse.h
AgeCommit message (Collapse)Author
2021-12-04Chore(REMOVE): finished deprecation of old io functions.Nicholas Noll
The old methods were simple wrappers of C standard library functions. We've moved (painfully) over to a new interface that allows for files to live on the stack. All users of the functionality are ported over.
2021-11-16Feat: added heredocsNicholas Noll
Heredocs are simply strings written to tmp files. There was minimal bug testing here. Also, various bug fixes are included
2021-11-15Feat: added if/else branching and switch statementNicholas
Unsure about my modification to the language. I found the parsing of the case body within switches to be odd - specifically that it parses liberally and then checks that it has case -> cmd structuring while it walks the code. This means the language is more permissive than the semantics. I modified it to be more explicit, but at the cost of having to end each case statement with a semicolon. I wanted a colon, but this is a valid word character and thus will be lexed as part of the word.
2021-11-12chore: simplified organizational structurelaptopNicholas