aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/rc/main.c
AgeCommit message (Collapse)Author
2021-11-17checkinNicholas
2021-11-16checkinNicholas Noll
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