Commit dc759dbb by Zachary Snow

support for parameters of all types; fix named argument display bug

parent c8e77626
...@@ -73,7 +73,7 @@ instance Show Args where ...@@ -73,7 +73,7 @@ instance Show Args where
where where
strs = (map showPnArg pnArgs) ++ (map showKwArg kwArgs) strs = (map showPnArg pnArgs) ++ (map showKwArg kwArgs)
showPnArg = maybe "" show showPnArg = maybe "" show
showKwArg (x, me) = printf ".%s(%s)" (show x) (showPnArg me) showKwArg (x, me) = printf ".%s(%s)" x (showPnArg me)
showAssignment :: Maybe Expr -> String showAssignment :: Maybe Expr -> String
showAssignment Nothing = "" showAssignment Nothing = ""
......
...@@ -568,8 +568,8 @@ TFItems :: { [Decl] } ...@@ -568,8 +568,8 @@ TFItems :: { [Decl] }
| ";" { [] } | ";" { [] }
ParamType :: { Type } ParamType :: { Type }
: "integer" Signing { IntegerAtom TInteger $2 } : PartialType Dimensions { $1 Unspecified $2 }
| "integer" { IntegerAtom TInteger Unspecified } | PartialType Signing Dimensions { $1 $2 $3 }
| DimensionsNonEmpty { Implicit Unspecified $1 } | DimensionsNonEmpty { Implicit Unspecified $1 }
| Signing Dimensions { Implicit $1 $2 } | Signing Dimensions { Implicit $1 $2 }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment