You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
brag/brag-lib/brag/test
Matthew Butterick 81f4fd25e7
lex double-quoted strings with Racket lexer (#32)
Follow up on an idea in #31: use the Racket lexer to lex double-quoted strings in a grammar, thereby giving them all the semantics of Racket strings, and preventing any corner cases. This solution can’t be extended to single-quoted strings, however, because even with readtable tomfoolery to recognize a single quote as an opening delimiter for a string, the string still needs to be closed with a double quote. (I don’t know why this should be so, but it is the documented behavior.) Therefore single-quoted strings still are subject to the homegrown lexing solution and the flaws therein. Still, I don’t see that single-quoted strings have ever been a documented feature of brag (or its predecessor ragg). Perhaps they could be dropped altogether. For now, this solution is satisfying, because double-quoted strings are the dominant notation, and this PR will make them as good as they can be.
2 years ago
..
test-0n1.rkt move 5 years ago
test-0n1n.rkt move 5 years ago
test-01-equal.rkt move 5 years ago
test-all.rkt Revert "subparsers" 5 years ago
test-baby-json-hider.rkt move 5 years ago
test-baby-json.rkt move 5 years ago
test-codepoints.rkt lex double-quoted strings with Racket lexer (#32) 2 years ago
test-curly-quantifier.rkt move 5 years ago
test-cutter-another.rkt move 5 years ago
test-cutter.rkt move 5 years ago
test-empty-symbol.rkt move 5 years ago
test-errors.rkt move 5 years ago
test-flatten.rkt move 5 years ago
test-hide-and-splice.rkt move 5 years ago
test-lexer.rkt support for codepoint escape sequences in strings (closes #29) (#31) 2 years ago
test-make-rule-parser.rkt Fix make-rule-parser (#28) 3 years ago
test-nested-repeats.rkt move 5 years ago
test-old-token.rkt move 5 years ago
test-parser.rkt move 5 years ago
test-quotation-marks-and-backslashes.rkt move 5 years ago
test-simple-arithmetic-grammar.rkt move 5 years ago
test-simple-line-drawing.rkt move 5 years ago
test-start-and-atok.rkt move 5 years ago
test-top-level-cut.rkt move 5 years ago
test-weird-grammar.rkt move 5 years ago
test-whitespace.rkt move 5 years ago
test-wordy.rkt move 5 years ago
weird-grammar.rkt move 5 years ago