Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion treeedbgen-souffle/src/gen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ fn node_with_fields(
w: &mut impl Write,
node: &Node,
) -> Result<String, io::Error> {
let rel_name = &node.ty;
let rel_name = match node.ty.as_str() {
"true" | "false" => format!("{}_literal", node.ty),
_ => node.ty.clone(),
};
Comment thread
JuanCortezEclyp marked this conversation as resolved.
let type_name = node.ty.to_upper_camel_case();
writeln!(w, ".type {}{} <: symbol", config.type_prefix, type_name)?;
writeln!(
Expand Down
Loading