MCPcopy Create free account
hub / github.com/PerroEngine/Perro / new

Method new

perro_source/runtime_project/perro_scene/src/parser.rs:23–33  ·  view source on GitHub ↗
(src: &'a str)

Source from the content-addressed store, hash-verified

21 lenient_separators: bool,
22}
23
24impl<'a> Parser<'a> {
25 pub fn new(src: &'a str) -> Self {
26 let mut lexer = Lexer::new(src);
27 let current = lexer.next_token();
28 Self {
29 src,
30 lexer,
31 current,
32 vars: HashMap::new(),
33 lenient_separators: false,
34 }
35 }
36

Callers

nothing calls this directly

Calls 1

next_tokenMethod · 0.80

Tested by

no test coverage detected