Beginning parsing code

This commit is contained in:
greg 2017-08-29 04:27:07 -07:00
parent ff01d4b798
commit f9fe81993f
2 changed files with 12 additions and 7 deletions

View File

@ -1,13 +1,10 @@
use language::{ProgrammingLanguage, EvaluationMachine, ParseError, TokenError, LLVMCodeString}; use language::{ProgrammingLanguage, EvaluationMachine, ParseError, TokenError, LLVMCodeString};
mod parsing;
pub struct Schala { pub struct Schala {
} }
#[derive(Debug)]
enum Token { }
#[derive(Debug)]
enum AST { }
impl Schala { impl Schala {
pub fn new() -> Schala { pub fn new() -> Schala {
Schala { } Schala { }
@ -15,8 +12,8 @@ impl Schala {
} }
impl ProgrammingLanguage for Schala { impl ProgrammingLanguage for Schala {
type Token = Token; type Token = parsing::Token;
type AST = AST; type AST = parsing::AST;
type Evaluator = SchalaEvaluator; type Evaluator = SchalaEvaluator;
fn name() -> String { fn name() -> String {

View File

@ -0,0 +1,8 @@
use language::{TokenError, ParseError};
#[derive(Debug)]
pub enum Token { }
#[derive(Debug)]
pub enum AST { }