MCPcopy Create free account
hub / github.com/GraphLite-AI/GraphLite / new

Method new

graphlite/src/ast/lexer.rs:303–309  ·  view source on GitHub ↗
(input: String)

Source from the content-addressed store, hash-verified

301
302impl Lexer {
303 pub fn new(input: String) -> Self {
304 Self {
305 input,
306 _position: 0,
307 tokens: Vec::new(),
308 }
309 }
310
311 pub fn tokenize(&mut self) -> Result<Vec<Token>, String> {
312 let mut remaining = self.input.as_str();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected