view testscripttags.html @ 242:0e7982adc76b

Make the successful return value from a match expression be truthy and the failure value false. This avoids an extra method call when checking the result and avoids allocating a new object when a match fails.
author Mike Pavone <>
date Sun, 05 Jan 2014 20:56:25 -0800
parents 02b20292f187
line wrap: on
line source
<!DOCTYPE html>
	<title>Parser Test</title>
	<script src="peg.js"></script>
	<script src="mquery.js"></script>
	<script src="parser.js"></script>
	<script src="compiler.js"></script>
	<script src="jsbackend.js"></script>
	<script src="scripttags.js"></script>
	<script src="samples/" type="text/tabletprog"></script>
	<script type="text/tabletprog">
			console <- foreign: #{
				log <- foreign: :val {}
			main <- {
				console log: "foobar"
	Testing 1 2 3