Created
August 5, 2008 07:46
-
-
Save collin/4039 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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