parser error handling improvements.

This commit is contained in:
Windel Bouwman 2019-07-06 20:18:18 +02:00
parent 9f068a3146
commit 888cb310e5
2 changed files with 2 additions and 2 deletions

View file

@ -1,5 +1,5 @@
use rustpython_parser::error::{ParseError, ParseErrorType};
use rustpython_parser::lexer::Location;
use rustpython_parser::location::Location;
use std::error::Error;
use std::fmt;

View file

@ -9,7 +9,7 @@ Inspirational file: https://github.com/python/cpython/blob/master/Python/symtabl
use crate::error::{CompileError, CompileErrorType};
use rustpython_parser::ast;
use rustpython_parser::lexer::Location;
use rustpython_parser::location::Location;
use std::collections::HashMap;
pub fn make_symbol_table(program: &ast::Program) -> Result<SymbolScope, SymbolTableError> {