Skip to content

Instantly share code, notes, and snippets.

@StanAngeloff
Forked from jashkenas/lexer-top.coffee
Created April 25, 2010 18:06
Show Gist options
  • Save StanAngeloff/378586 to your computer and use it in GitHub Desktop.
Save StanAngeloff/378586 to your computer and use it in GitHub Desktop.
# This is at the start of the current Lexer.
# Import the helpers we need.
helpers: require('./helpers').helpers
include: helpers.include
count: helpers.count
starts: helpers.starts
compact: helpers.compact
balanced_string: helpers.balanced_string
# And we could simplify to this:
# Import the helpers we need.
import include, count, starts, compact, balanced_string from require('./helpers').helpers
var _a, balanced_string, compact, count, include, starts;
_a = require('./helpers').helpers;
include = _a.include;
count = _a.count;
starts = _a.starts;
compact = _a.compact;
balanced_string = _a.balanced_string;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment