I'm having trouble recognizing a Type.
I know that (Type? [t-bool]) returns true,
but (? Type? IAmATypeISwear) in the match statement will not match to
'[t-bool]. It seems to me that what I send in is being changed to '(t-
bool) and (Type? (t-bool)) is #f.
in the grand scheme of my parser here is what I'd like to match
(match sexpr
...
[(list 'fun (list (? validSymbol? ident) ': (? Type? argType)) ': (?
Type? returnType) expr)
...(fun ... )]
...
)
but I can't even match
[(? Type? t)]
am I trying this correctly? I've tried making my own functions that
perform like Type? but my error seems to be the transformation of '['
']' to '(' ')'.
Any suggestions? I've implemented all of my parser so far using
(match...) since I remember learning in a code review that it looked a
lot simpler than an overburdened (cond...) statement.
Ogden