Skip to content

Latest commit

 

History

History
38 lines (21 loc) · 1.18 KB

README.md

File metadata and controls

38 lines (21 loc) · 1.18 KB

nom-text

Goal: a library that extends nom to provide better tools for text formats (programming languages, configuration files).

current needs

Recognizing line and column in input data: nom-locate

aggregating more precise errors

Using nom-supreme

error recovery

parsers need to be fault tolerant: recovering from the current error allows parsing the rest of the file: https://eyalkalderon.com/blog/nom-error-recovery/

We should also allow for various error levels (like warnings, that would not stop compilation)

precedence

precedence rules can be annoying to write

bounded recursion

most language parsers end up calling themselves recursively, resulting in stack overflow issues

nicer error diagnostic

if we have error spans, we should be able to display more context, like rustc's errors

tokenization

should we support multiple phases, with &str -> Vec<Token> functions followed by &[Token] -> AST functions?