Beginning parsing code
This commit is contained in:
parent
ff01d4b798
commit
f9fe81993f
@ -1,13 +1,10 @@
|
||||
use language::{ProgrammingLanguage, EvaluationMachine, ParseError, TokenError, LLVMCodeString};
|
||||
|
||||
mod parsing;
|
||||
|
||||
pub struct Schala {
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
enum Token { }
|
||||
#[derive(Debug)]
|
||||
enum AST { }
|
||||
|
||||
impl Schala {
|
||||
pub fn new() -> Schala {
|
||||
Schala { }
|
||||
@ -15,8 +12,8 @@ impl Schala {
|
||||
}
|
||||
|
||||
impl ProgrammingLanguage for Schala {
|
||||
type Token = Token;
|
||||
type AST = AST;
|
||||
type Token = parsing::Token;
|
||||
type AST = parsing::AST;
|
||||
type Evaluator = SchalaEvaluator;
|
||||
|
||||
fn name() -> String {
|
||||
|
8
src/schala_lang/parsing.rs
Normal file
8
src/schala_lang/parsing.rs
Normal file
@ -0,0 +1,8 @@
|
||||
use language::{TokenError, ParseError};
|
||||
|
||||
|
||||
#[derive(Debug)]
|
||||
pub enum Token { }
|
||||
|
||||
#[derive(Debug)]
|
||||
pub enum AST { }
|
Loading…
Reference in New Issue
Block a user