Code structure for radio links and radio targets.

This commit is contained in:
Tom Alexander
2023-04-24 18:55:15 -04:00
parent 5c37373419
commit 64c17e654a
5 changed files with 132 additions and 7 deletions

23
src/parser/radio_link.rs Normal file
View File

@@ -0,0 +1,23 @@
use super::Context;
use crate::error::CustomError;
use crate::error::MyError;
use crate::error::Res;
use crate::parser::RadioLink;
use crate::parser::RadioTarget;
#[tracing::instrument(ret, level = "debug")]
pub fn radio_link<'r, 's>(context: Context<'r, 's>, input: &'s str) -> Res<&'s str, RadioLink<'s>> {
return Err(nom::Err::Error(CustomError::MyError(MyError(
"Not implemented yet.",
))));
}
#[tracing::instrument(ret, level = "debug")]
pub fn radio_target<'r, 's>(
context: Context<'r, 's>,
input: &'s str,
) -> Res<&'s str, RadioTarget<'s>> {
return Err(nom::Err::Error(CustomError::MyError(MyError(
"Not implemented yet.",
))));
}