-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d424e27
commit 4101279
Showing
6 changed files
with
142 additions
and
6 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
extern crate lalrpop; | ||
|
||
pub fn main() { | ||
|
||
lalrpop::process_root().unwrap(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,28 @@ | ||
use clap::Parser as CLIParser; | ||
use std::path::Path; | ||
|
||
use std::fs; | ||
|
||
#[macro_use] extern crate lalrpop_util; | ||
lalrpop_mod!(pub parser); // synthesized by LALRPOP | ||
|
||
pub fn main() { | ||
/// Simple program to greet a person | ||
#[derive(CLIParser, Debug)] | ||
#[command(author, version, about, long_about = None)] | ||
struct Args { | ||
#[arg(index = 1)] | ||
file: String, | ||
} | ||
|
||
pub fn main() -> std::io::Result<()> { | ||
let args = Args::parse(); | ||
let file = args.file; | ||
|
||
let breeze_file = Path::new(&file).join("project.breeze"); | ||
let program_text = fs::read_to_string(breeze_file).expect("Unable to read the program file"); | ||
|
||
let expr = parser::BreezeParser::new() | ||
.parse(&program_text) | ||
.unwrap(); | ||
Ok(()) | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
task build { | ||
|
||
} |