Building the Weir Language
elijahpotter.dev·1d
🔤Tokenization
Preview
Report Post

Most large organizations have a style guide. A document that decides which versions of a linguistic rule to use. That could be whether to use the Oxford comma, or if contractions are allowed. It could declare that a certain word should be capitalized in a specific context.

Harper can cover most of the rules in most style guides, but there will always be outliers that we can’t support (or simply don’t know about). That is why it is critical that Harper allow individuals and organizations to define rules and conventions for Harper to enforce.

For the last few days, I’ve been prototyping a simple (not Turing-complete) programming language for describing these conventions. I’ve called it Weir. Weir is simple and thus easy to learn, but has escape hatches for instances where m…

Similar Posts

Loading similar posts...