All I want to do is parse, no semantics need to be known. I'm
bootstrapping shen-java, so I'm writing the compiler in shen itself.
So, I thought I would re-use the shen parser to get the AST. I managed
to come up with this:
(define parse-shen
Code-list -> (compile (lambda V971 (shen-<st_input> V971)) Code-list
(lambda V972 (shen-read-error V972))))
But it's not very pretty. Is there a more clean way to do it? And is
there a way to get it so it will parse that fail definition?
Otherwise, I guess I could put in a special check for that certain
line and handle it as a special case. Or maybe I'll skip it and define
fail directly in the platform.