mbutterick / brag

Racket DSL for generating parsers from BNF grammars [moved to https://git.matthewbutterick.com/mbutterick/brag]
https://git.matthewbutterick.com/mbutterick/brag
MIT License
61 stars 12 forks source link

Support arbitrary unicode codepoint #29

Closed iacore closed 2 years ago

iacore commented 2 years ago

Currently, the following code is invalid.

#lang brag
graphic: "\x21".."\x7E" # "!".."~"
utf8: "\u0080".."\uFFFF"

What's the behavior of brag when handling unicode strings? Racket's documentation says a string is a list of codepoints.

mbutterick commented 2 years ago

I can look into it. The .. character-range operator is part of neither Racket nor brag, however.