lang, engine: Add a metaparam for catching accidental dollar signs

Let's make our life easier for users!
This commit is contained in:
James Shubin
2024-08-22 20:41:48 -04:00
parent 8dc0d44513
commit a0972c0752
10 changed files with 72 additions and 1 deletions

View File

@@ -41,6 +41,7 @@ import (
// Parse performs string interpolation on the input. It returns the list of
// tokens found. It looks for variables of the format ${foo}. The curly braces
// are required.
// XXX: Pull dollar sign and curly chars from VarPrefix and other constants.
func Parse(data string) (out Stream, _ error) {
var (
// variables used by Ragel