Skip to content

Instantly share code, notes, and snippets.

@jashkenas
Created April 25, 2010 18:05
Show Gist options
  • Save jashkenas/378585 to your computer and use it in GitHub Desktop.
Save jashkenas/378585 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.
helpers: require('./helpers').helpers
import include, count, starts, compact, balanced_string from helpers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment