alpha-shell 0.3.0

A transpiler for the AlphaShell language
1
2
3
4
5
6
7
8
9
10
11
12
use super::{
  error::{Error, TranspileResult},
  transpiler::Transpiler,
};
use crate::parse::node::Node;

pub fn transpile(_t: &mut Transpiler, node: &Node) -> TranspileResult<String> {
  match node {
    Node::Source(file) => Ok(format!("source '{file}'")),
    _ => Err(Error::new("Invalid node type", node)),
  }
}