Skip to content

Instantly share code, notes, and snippets.

@collin
Created August 5, 2008 07:46
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 collin/4039 to your computer and use it in GitHub Desktop.
Save collin/4039 to your computer and use it in GitHub Desktop.
module Johnson
module Nodes
attr_accessor :value
class FallThrough < Node
def initialize(_row, _column, value)
@value = value
end
end
end
module Visitors
class EcmaVisitor
def visit_FallThrough(o)
o.value
end
end
class SexpVisitor
def visit_FallThrough(o)
[:fall_through, o.value]
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment