CarpeQueso / craindown

A markdown-like language with a simple, unambiguous spec.
0 stars 0 forks source link

Lexing with Regexes #9

Open CarpeQueso opened 3 years ago

CarpeQueso commented 3 years ago

To be able to scan for tokens that aren't static "keywords" (like ordered lists starting with 1., 2., etc.), we probably need to alter the lexer to match against regexes instead of exact strings. This isn't a huge lift, and it should fit well with the existing structure of the lexer.