Skip to content

Instantly share code, notes, and snippets.

@nathanathan
Created October 28, 2012 21:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nathanathan/3969897 to your computer and use it in GitHub Desktop.
Save nathanathan/3969897 to your computer and use it in GitHub Desktop.
s_exp number
{
"category": "s_exp",
"components": [
{"regex": "\\d+(\\.\\d+)?"}
],
"implementation": "function (components){return parseFloat(components[0], 10)}",
"asyncImpl": "components.at(0, function(component){ callback(parseFloat(component, 10)) })"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment