From 22cb7d7cbcacbfe3a7d3a2d454e6b8cf49ae989c Mon Sep 17 00:00:00 2001 From: Graham Northup Date: Fri, 13 Oct 2017 12:54:04 -0400 Subject: Added LUTs and ControlRate; improved parser --- src/synth/rel.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/synth/rel.rs') diff --git a/src/synth/rel.rs b/src/synth/rel.rs index e3c4216..d2fbb70 100644 --- a/src/synth/rel.rs +++ b/src/synth/rel.rs @@ -11,6 +11,19 @@ pub enum RelOp { Less, } +impl RelOp { + pub fn to_param_string(&self) -> &'static str { + match *self { + RelOp::Greater => ">", + RelOp::GreaterEqual => ">=", + RelOp::Equal => "==", + RelOp::NotEqual => "!=", + RelOp::LessEqual => "<=", + RelOp::Less => "<", + } + } +} + /* TODO impl> From for RelOp { fn from(i: T) -> RelOp { -- cgit v1.2.3-70-g09d2