apollo-parser@0.3.1
·
674 commits
to main
since this release
0.3.1 - 2022-11-04
Features
-
streaming lexer - Geal + goto-bus-stop, pull/115
To help improve performance and memory usage in the lexer, we are now
streaming all incoming tokens in the lexer implementation. -
extend
ast::*Valuenode conversions - SimonSapin, pull/344The following node types implement conversion to standard types, extracting
their value:StringValue→StringIntValue→i32FloatValue→f64BoolValue→bool
These conversions are now also available:
- Through the
Fromtrait, not just theIntotrait - With borrowed nodes, not just owned
Example:
let node: &apollo_parser::ast::StringValue = /* something */; let value: String = node.clone().into(); // before let value = String::from(node); // now also possible