in reply to Re: A minilanguage with the least effort?
in thread A minilanguage with the least effort?
That aside, here's an implementation (complete with syntax checking) for the mini-est language I can think of.
I'll leave it up to you to work out what the valid input is.$_ = <>; die "Syntax Error\n" unless m/^[10]$/; die "Syntax Error\n" if defined <>; exit $_;
--
use JAPH;
print JAPH::asString();
|
|---|