Crate yarte_lexer

Crate yarte_lexer 

Source

Re-exports§

pub use self::error::emitter;
pub use self::error::KiError;
pub use self::error::LexError;

Modules§

error

Macros§

alt
ascii
New ascii
asciis
call
do_parse
next
pipes
Make a in tail function call

Structs§

Ascii
Bound byte to few ascii character
Cursor
Expr
Local
Span
StmtLocal

Enums§

Token

Traits§

AsStr
IsEmpty
Ki
Kinder
NotFalse
NotTrue

Functions§

get_bytes_to_chars
Cast byte range to chars range in text
get_chars
Get char range in text
get_cursor
Add file to source map and return lower bound
important
Cast next error to Fail error
is_empty
Result Pipe is_empty
is_none
Result Pipe optional is none
is_some
Result Pipe optional is some
is_ws
map
Result Pipe map
map_err
Result Pipe map_err
next_ws
Take an ascii whitespace or next error
not_false
Result Pipe false to error next
not_true
Result Pipe true to error next
opt
Result Pipe optional
parse
path
TODO: Define chars in path Eat path at partial Next white space close path
skip_ws
tac
Take an ascii character or next error
tag
Take ascii characters or next error
take_while
Take while function is true or empty Ok if is empty
then
Result Pipe then
trim
ws
Take ascii whitespaces, next error if is empty

Type Aliases§

SArm
SExpr
SLocal
SStr
SToken
SVExpr
Ws