diff options
| author | azidar | 2015-07-16 11:06:48 -0700 |
|---|---|---|
| committer | azidar | 2015-07-16 11:06:48 -0700 |
| commit | b75047591886a8281ca6cba2b2c7daa877cb3ce1 (patch) | |
| tree | 5eb82a4d6bf7017e75505b939c85c5d8d9283d52 /src/main/stanza/passes.stanza | |
| parent | dad79768db7a899b071a49a63466003c7d7e80da (diff) | |
Fixed rename to work with chisel3 stuff
Diffstat (limited to 'src/main/stanza/passes.stanza')
| -rw-r--r-- | src/main/stanza/passes.stanza | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/main/stanza/passes.stanza b/src/main/stanza/passes.stanza index c4d6a58f..c03e2194 100644 --- a/src/main/stanza/passes.stanza +++ b/src/main/stanza/passes.stanza @@ -285,23 +285,21 @@ defmethod map (f: Type -> Type, e: WIndex) : ; Returns a new Circuit where all names have all special characters ; removed, except _. -public defstruct RemoveSpecialChars <: Pass -public defmethod pass (b:RemoveSpecialChars) -> (Circuit -> Circuit) : - remove-special-chars +public defstruct RemoveSpecialChars <: Pass +public defmethod pass (b:RemoveSpecialChars) -> (Circuit -> Circuit) : remove-special-chars public defmethod name (b:RemoveSpecialChars) -> String : "Remove Special Characters" public defmethod short-name (b:RemoveSpecialChars) -> String : "rem-spec-chars" -public defmulti ;------------ Helper Functions ------------- defn get-new-string (n:Char) -> String : switch {n == _} : - '_' : "__" + ;'_' : "__" '~' : "_A" '!' : "_B" '@' : "_C" '#' : "_D" - '$' : "_E" + ;'$' : "_E" '%' : "_F" '^' : "_G" '*' : "_H" |
