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::*Value
node conversions - SimonSapin, pull/344The following node types implement conversion to standard types, extracting
their value:StringValue
→String
IntValue
→i32
FloatValue
→f64
BoolValue
→bool
These conversions are now also available:
- Through the
From
trait, not just theInto
trait - 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