1
0
Fork 0
forked from AbleOS/ableos

changed file extension to .aldi and made it so that decorators don't work

This commit is contained in:
Talha Qamar 2024-09-11 01:29:18 +05:00
parent 94b7aabdec
commit b5cdc9c4fd
4 changed files with 4 additions and 3 deletions

View file

@ -85,7 +85,7 @@ fn build(a: Vec<Token>) {
}
fn open_protocol(name: String) -> String {
let path = format!("sysdata/idl/{}/src/protocol.aidl", name);
let path = format!("sysdata/idl/{}/src/protocol.aldi", name);
let mut file = std::fs::File::open(path).unwrap();
let mut contents = String::new();
file.read_to_string(&mut contents).unwrap();

View file

@ -32,6 +32,7 @@ fn parse_decorated_declarations(tokens : &mut Peekable<Iter<'_, Token>>) -> Vec<
match tokens.peek() {
Some(_) => {
let decoration = parse_decoration(tokens);
assert!(decoration == None, "NO DECORATIONS!!!");
let declaration = parse_declaration(tokens);
declarations.push(DecoratedDeclaration(decoration, declaration));

View file

@ -57,7 +57,7 @@ pub fn new(development_type: DevelopmentType, name: String) {
let (folder_hierarchy, entry_name) = match development_type {
DevelopmentType::Program => ("programs", "main.hb"),
DevelopmentType::Library => ("libraries", "lib.hb"),
DevelopmentType::IDL => ("idl", "protocol.aidl"),
DevelopmentType::IDL => ("idl", "protocol.aldi"),
};
let project_folder_path_string = format!("sysdata/{folder_hierarchy}/{name}");

View file

@ -13,7 +13,7 @@
// Err = 0,
// Ok,
//}
@example
struct Log {
log_level: LogLevel,
}