-
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
Showing
23 changed files
with
307 additions
and
297 deletions.
There are no files selected for viewing
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,3 +1,5 @@ | ||
$ hello 'world' | ||
$ hello 'hello' | ||
$ world 'world' | ||
$ hello_world $hello $world | ||
|
||
> $hello | ||
> $hello_world |
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,5 +1,5 @@ | ||
mod node; | ||
mod parser; | ||
|
||
pub(crate) use node::{AstNodeType, AstNode}; | ||
pub(crate) use parser::{AstParser, AstParserError}; | ||
pub(crate) use node::{AstNode, AstNodeType}; | ||
pub(crate) use parser::{AstParser, AstParserError}; |
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
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,12 +1,9 @@ | ||
pub(crate) struct Compilation { | ||
pub(crate) content: Vec<u8> | ||
pub(crate) content: Vec<u8>, | ||
} | ||
|
||
impl Compilation { | ||
|
||
pub(crate) fn from(content: Vec<u8>) -> Self { | ||
Compilation { | ||
content | ||
} | ||
Compilation { content } | ||
} | ||
} | ||
} |
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,14 +1,13 @@ | ||
use std::path::PathBuf; | ||
|
||
pub(crate) struct HexoCompilerContext { | ||
pub(crate) root_dir : PathBuf | ||
pub(crate) root_dir: PathBuf, | ||
} | ||
|
||
impl HexoCompilerContext { | ||
|
||
pub(crate) fn new() -> Self { | ||
HexoCompilerContext { | ||
root_dir: PathBuf::from(".") | ||
root_dir: PathBuf::from("."), | ||
} | ||
} | ||
} |
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 |
---|---|---|
|
@@ -2,4 +2,4 @@ mod node; | |
mod parser; | ||
|
||
pub(crate) use node::*; | ||
pub(crate) use parser::*; | ||
pub(crate) use parser::*; |
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
Oops, something went wrong.