Separating ast implementations

This commit is contained in:
2026-05-14 21:27:50 +02:00
parent 192769c8ad
commit 50fa660392
6 changed files with 205 additions and 184 deletions
+6
View File
@@ -16,3 +16,9 @@ pub enum ParseError<'a> {
pub enum ErrorCode {
InvalidStatement = 200,
}
impl From<pest::error::Error<Rule>> for ParseError<'_> {
fn from(value: pest::error::Error<Rule>) -> Self {
Self::PreAst(value)
}
}