Mar
28
PLAIN TEXT JAVASCRIPT: TheRulesAre(function() { with(this) { a(Player).mayNot(’buyProperty’).unless(function(player, property) { return property.owner === null && player.funds>= property.price; }); a(Property).mayNot(’addHouse’).when(it().isMortgaged());}}); Composing DSLs in JavaScript is James Coglan’s latest perusal into fun with JavaScript and DSLs. He walks through the building of this DSL in a step by […]
More: continued here































