-
-
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.
remove middle-level code api, update comments
- Loading branch information
yggverse
committed
Dec 3, 2024
1 parent
d739181
commit 84c72ae
Showing
9 changed files
with
13 additions
and
57 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,33 +1,5 @@ | ||
pub mod error; | ||
pub mod inline; | ||
pub mod multiline; | ||
|
||
pub use error::Error; | ||
use inline::Inline; | ||
use multiline::Multiline; | ||
|
||
pub struct Code { | ||
// nothing yet.. | ||
} | ||
|
||
impl Code { | ||
// Constructors | ||
|
||
/// Parse inline `Self` from string | ||
pub fn inline_from(line: &str) -> Option<Inline> { | ||
Inline::from(line) | ||
} | ||
|
||
/// Begin multi-line parse `Self` from string | ||
pub fn multiline_begin_from(line: &str) -> Option<Multiline> { | ||
Multiline::begin_from(line) | ||
} | ||
|
||
/// Continue multi-line parse `Self` from string | ||
pub fn multiline_continue_from(this: &mut Multiline, line: &str) -> Result<(), Error> { | ||
match Multiline::continue_from(this, line) { | ||
Ok(()) => Ok(()), | ||
Err(e) => Err(Error::Multiline(e)), | ||
} | ||
} | ||
} | ||
pub use inline::Inline; | ||
pub use multiline::Multiline; |
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
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
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