Skip to content

Commit

Permalink
rework: generator - hide Rc from lexer API
Browse files Browse the repository at this point in the history
  • Loading branch information
igordejanovic committed Dec 15, 2023
1 parent d173eaa commit 2562fdf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions rustemo-compiler/src/generator/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,6 @@ impl<'g, 's> ParserGenerator<'g, 's> {
/// Generated by rustemo. Do not edit manually!
use std::fmt::Debug;
use std::hash::Hash;
use std::rc::Rc;

use rustemo::{Result, Input as InputT, Lexer, Token,
TokenRecognizer as TokenRecognizerT,
Expand Down Expand Up @@ -701,7 +700,7 @@ impl<'g, 's> ParserGenerator<'g, 's> {
let parser_instance: syn::Expr = match self.settings.parser_algo {
ParserAlgo::LR => parse_quote! {
LRParser::new(&PARSER_DEFINITION, State::default(), #partial_parse, #has_layout,
Rc::new(#lexer_instance), #builder_instance)
#lexer_instance, #builder_instance)
},
ParserAlgo::GLR => parse_quote! {
GlrParser::new(&PARSER_DEFINITION, #partial_parse,
Expand Down

0 comments on commit 2562fdf

Please sign in to comment.