Document lexer (#2865)

* Update dependencies

* Document the lexer and lightly improve its names

The bulk of this pull request adds a substantial amount of new inline
documentation for the lexer. Along the way, I made a few minor changes
to the names in the lexer, most of which were internal.

The main change that affects other files is renaming `group` to `block`,
since the function is actually parsing a block (a list of groups).

* Fix rustfmt

* Update lock

Co-authored-by: Jonathan Turner <jonathandturner@users.noreply.github.com>
Co-authored-by: Jonathan Turner <jonathan.d.turner@gmail.com>
This commit is contained in:
Yehuda Katz
2021-01-06 19:03:00 -08:00
committed by GitHub
parent eb62fd466e
commit f410fb6689
12 changed files with 262 additions and 121 deletions

View File

@ -6,7 +6,7 @@ mod scope;
mod shapes;
mod signature;
pub use lex::{group, lex, LiteBlock, LiteCommand, LiteGroup, LitePipeline};
pub use lex::{block, lex, LiteBlock, LiteCommand, LiteGroup, LitePipeline};
pub use parse::{classify_block, garbage, parse, parse_full_column_path, parse_math_expression};
pub use path::expand_ndots;
pub use scope::ParserScope;