41 lines
909 B
Text
41 lines
909 B
Text
|
- impl backslash escapes
|
||
|
- eval words
|
||
|
- error handling
|
||
|
- arithmatic
|
||
|
- subst
|
||
|
- standard argv -> name+switches+positionals helper
|
||
|
|
||
|
==========================
|
||
|
older
|
||
|
==========================
|
||
|
|
||
|
- Jest testing
|
||
|
- endekalogue
|
||
|
|
||
|
...Lexing tokens?
|
||
|
|
||
|
- \n or ;
|
||
|
- [
|
||
|
- ]
|
||
|
- "
|
||
|
- \
|
||
|
- #
|
||
|
- $
|
||
|
- {
|
||
|
- }
|
||
|
- non-newline whitespace
|
||
|
- other characters
|
||
|
|
||
|
test cases:
|
||
|
|
||
|
- intercommand whitespace, blank commands, ;;;,
|
||
|
- braces, nested, escaped, continued newlines, other backslashes, text-after-closing-brace
|
||
|
- trailing whitespace, for commands and scripts
|
||
|
- backslash escapes
|
||
|
|
||
|
- types if magic:
|
||
|
- plain text
|
||
|
- charged/enchanted text (literal, not result of substitution or {} escape; decays to plain text when substituted)
|
||
|
- html text (never result of literal, established as "safe" as a whole; if combined with plain text, plain text is escaped to result in more html)
|
||
|
- TODO: should html text just be natural type?
|