docs(lex): Clarify context-sensitive lexing

This commit is contained in:
Ed Page 2022-04-15 12:49:02 -05:00
parent 687d361a97
commit 530db327db

View file

@ -1,7 +1,8 @@
//! Minimal, flexible command-line parser
//!
//! As opposed to a declarative parser, this processes arguments as a stream. The caller
//! decides when to treat an argument as a flag or value.
//! As opposed to a declarative parser, this processes arguments as a stream of tokens. As lexing
//! a command-line is not context-free, we rely on the caller to decide how to interpret the
//! arguments.
//!
//! # Examples
//!