mirror of
https://github.com/joshuadavidthomas/django-language-server.git
synced 2025-09-11 04:46:38 +00:00
remove ast
This commit is contained in:
parent
5dabbf2ca0
commit
ca4877d06c
1 changed files with 1 additions and 6 deletions
|
@ -6,16 +6,11 @@ use thiserror::Error;
|
||||||
pub struct Parser {
|
pub struct Parser {
|
||||||
tokens: TokenStream,
|
tokens: TokenStream,
|
||||||
current: usize,
|
current: usize,
|
||||||
ast: Ast,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Parser {
|
impl Parser {
|
||||||
pub fn new(tokens: TokenStream) -> Self {
|
pub fn new(tokens: TokenStream) -> Self {
|
||||||
Parser {
|
Parser { tokens, current: 0 }
|
||||||
tokens,
|
|
||||||
current: 0,
|
|
||||||
ast: Ast::default(),
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn parse(&mut self) -> Result<Ast, ParserError> {
|
pub fn parse(&mut self) -> Result<Ast, ParserError> {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue