Skip to content

Instantly share code, notes, and snippets.

@mmitou
Created March 17, 2013 15:22
Show Gist options
  • Select an option

  • Save mmitou/5181999 to your computer and use it in GitHub Desktop.

Select an option

Save mmitou/5181999 to your computer and use it in GitHub Desktop.
var jarsec = new Jarsec(" 123 ");
var x = jarsec.space().integer().many(Jarsec.space).run();
var y = jarsec.space().choice(Jarsec.character("01"), Jarsec.integer, Jarsec.return).run();
function spaces() {
this.many(spaces);
return this;
};
function frstThird() {
var x = this.item().run();
this.space();
var y = this.item().run();
this.returnVal( x + y );
return this;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment