Now that we have an AST transform pass, we should be able to push this logic out into a separate pass and keep the grammar generic.
proposal:
a codeBlock is { followed by a codeBlockIdentifier ...
a codeBlockIdentifier is one of backtick~!@#%^&*_+-=;,.? -- what's on a US QWERTY keyboard minus dollar, parens, braces, brackets, pipe, colon, double and single quotes, <, > and slash and back slash since these are going to be confusing or are used for other things already
Today the peg grammar handles distinguishing between a
exists
section
etc.e.g.
Now that we have an AST transform pass, we should be able to push this logic out into a separate pass and keep the grammar generic.
proposal:
codeBlock
is{
followed by acodeBlockIdentifier
...codeBlockIdentifier
is one ofbacktick~!@#%^&*_+-=;,.?
-- what's on a US QWERTY keyboard minus dollar, parens, braces, brackets, pipe, colon, double and single quotes, <, > and slash and back slash since these are going to be confusing or are used for other things alreadyissues:
bodies
are