summaryrefslogtreecommitdiff
path: root/Shell/Formatter.h
AgeCommit message (Collapse)Author
2020-12-29Shell: Add runtime errors and implement break/continueAnotherTest
Such errors are raised when SyntaxError nodes are executed, and are also used for internal control flow. The 'break' and 'continue' commands are currently only allowed inside for loops, and outside function bodies. This also adds a 'loop' keyword for infinite loops.
2020-11-17Shell: Remove unused private member and includesLenny Maiorani
Problem: - Clang reports unused private member warning in the `Shell::Formatter`. - Vector is not used in the `Shell::Formatter`. Solution: - Remove unused private member variable. - Remove unused includes.
2020-10-25Shell: Add support for brace expansionsAnotherTest
This adds support for (basic) brace expansions with the following syntaxes: - `{expr?,expr?,expr?,...}` which is directly equivalent to `(expr expr expr ...)`, with the missing expressions replaced with an empty string literal. - `{expr..expr}` which is a new range expansion, with two modes: - if both expressions are one unicode code point long, the range is equivalent to the two code points and all code points between the two (numerically). - if both expressions are numeric, the range is equivalent to both numbers, and all numbers between the two. - otherwise, it is equivalent to `(expr expr)`. Closes #3832.
2020-10-14Shell: Respect input sources' blank lines between sequencesAnotherTest
But collapse them to a single empty line. This makes the generated sources look significantly better.
2020-10-04Shell: Move everything to the Shell namespaceAnotherTest
Also provide a basic default-constructor.
2020-09-26Shell: Add a (very basic) formatterAnotherTest