class Savi::Parser::Builder::State
- Savi::Parser::Builder::State
- Reference
- Object
Overview
This State is used mainly for keeping track of line numbers and ranges, so that we can better populate a Source::Pos with all the info it needs.
Defined in:
savi/parser/builder/state.crConstructors
Instance Method Summary
- #pos(token : Pegmatite::Token) : Source::Pos
- #pos_single_with_offset(token : Pegmatite::Token, offset : Int32) : Source::Pos
- #slice(token : Pegmatite::Token)
- #slice(range : Range)
- #slice_with_escapes(token : Pegmatite::Token)
- #source : Savi::Source