Update parser
This commit is contained in:
parent
eb9388f1c1
commit
f4748c4b35
|
@ -3,9 +3,6 @@
|
|||
#![allow(unused_attributes)]
|
||||
use super::GraphQLParser;
|
||||
|
||||
#[allow(non_upper_case_globals)]
|
||||
const _PEST_GRAMMAR_GraphQLParser: &'static str =
|
||||
include_str!("/Users/sunli/work/async-graphql/parser/src/graphql.pest");
|
||||
#[allow(dead_code, non_camel_case_types)]
|
||||
#[derive(Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)]
|
||||
pub enum Rule {
|
||||
|
|
|
@ -26,7 +26,7 @@ struct GraphQLParser;
|
|||
.parse::<proc_macro2::TokenStream>()
|
||||
.unwrap();
|
||||
|
||||
let tokens = pest_generator::derive_parser(input, true);
|
||||
let tokens = pest_generator::derive_parser(input, false);
|
||||
let current =
|
||||
String::from_utf8(fs::read("./src/parse/generated.rs").unwrap_or_default()).unwrap();
|
||||
|
||||
|
|
Loading…
Reference in New Issue