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();
In reply to Re^2: A minilanguage with the least effort?
by wol
in thread A minilanguage with the least effort?
by esk555
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |