Update parser

This commit is contained in:
Sunli 2022-05-01 09:53:36 +08:00
parent eb9388f1c1
commit f4748c4b35
2 changed files with 1 additions and 4 deletions

View File

@ -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 {

View File

@ -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();