Initial Commit
This commit is contained in:
40
libconlang/src/lib.rs
Normal file
40
libconlang/src/lib.rs
Normal file
@@ -0,0 +1,40 @@
|
||||
//! Conlang is an expression-based programming language
|
||||
|
||||
pub mod token {
|
||||
//! Stores a component of a file as a type and span
|
||||
}
|
||||
|
||||
pub mod ast {
|
||||
//! Stores functions, data structure definitions, etc.
|
||||
}
|
||||
|
||||
pub mod lexer {
|
||||
//! Converts a text file into tokens
|
||||
}
|
||||
|
||||
pub mod parser {
|
||||
//! Parses tokens into an AST
|
||||
}
|
||||
|
||||
pub mod interpreter {
|
||||
//! Interprets an AST as a program
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
mod token {
|
||||
// TODO
|
||||
}
|
||||
mod ast {
|
||||
// TODO
|
||||
}
|
||||
mod lexer {
|
||||
// TODO
|
||||
}
|
||||
mod parser {
|
||||
// TODO
|
||||
}
|
||||
mod interpreter {
|
||||
// TODO
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user