Compare commits
	
		
			No commits in common. "1d3a1593ee2b02adf7a3ddab6748e714dee003e6" and "36955295bcfa6cafd5f6bcc9f47c70bd288f681f" have entirely different histories.
		
	
	
		
			1d3a1593ee
			...
			36955295bc
		
	
		
| @ -1 +0,0 @@ | ||||
| decl pub ns core | ||||
							
								
								
									
										4
									
								
								dm_std_lib/std/core/ns.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								dm_std_lib/std/core/ns.yaml
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,4 @@ | ||||
| ns | ||||
|   name: core | ||||
|   patch: false | ||||
|   vis: pub | ||||
| @ -1,3 +1,4 @@ | ||||
| use deimos::ast::build_ast; | ||||
| use deimos::vm::dm_type::DmType; | ||||
| use deimos::vm::lib::{DmConstant, DmLib}; | ||||
| use deimos::vm::object_type::{DmField, DmFn, DmImplementation, DmInterface, DmMethod}; | ||||
|  | ||||
| @ -1,7 +1,8 @@ | ||||
| use crate::ast::CompilationUnit; | ||||
| use crate::parser::{DeimosParser, Rule}; | ||||
| use crate::module::DmModule; | ||||
| use crate::vm::lib::DmLib; | ||||
| use pest::Parser; | ||||
| 
 | ||||
| pub fn compile(module: &mut DmModule, compilation_unit: CompilationUnit) { | ||||
| pub fn compile(src_unit: &str) -> DmLib { | ||||
|     let p = DeimosParser::parse(Rule::compilation_unit, src_unit).unwrap(); | ||||
|     todo!() | ||||
| } | ||||
|  | ||||
| @ -4,4 +4,3 @@ pub mod parser; | ||||
| mod util; | ||||
| pub mod vm; | ||||
| pub mod ast; | ||||
| pub mod module; | ||||
|  | ||||
| @ -1,17 +0,0 @@ | ||||
| pub struct DmModule { | ||||
|     pub namespace: DmNamespace, | ||||
| } | ||||
| 
 | ||||
| pub enum NamespaceVisibility { | ||||
|     Public, | ||||
|     Partial { | ||||
|         visible_to_fqns: Vec<String> | ||||
|     }, | ||||
|     Private | ||||
| } | ||||
| 
 | ||||
| pub struct DmNamespace { | ||||
|     pub name: String, | ||||
|     pub dependencies: Vec<String>, | ||||
|     pub visibility: NamespaceVisibility | ||||
| } | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user