'''
Created on Jan 7, 2015

@author: ekondrashev
'''
import BashastBaseListener
class Listener(BashastBaseListener):
    def __init__(self, print_fn):
        BashastBaseListener.__init__(self)
        self.print_fn = print_fn

    def enterFirst_line_comment(self, ctx):
        self.print_fn("Enter first line comment")

    def enterFor_expr(self, ctx): 
        self.print_fn("Enter for expr")
    
    def enterWspace(self, ctx):
        self.print_fn("Enter wspace")
        
    def enterBrace_expansion(self, ctx):
        self.print_fn("Enter Brace_expansion")
    
    def enterRange(self, ctx):
        self.print_fn("Enter range")

    def enterVariable_reference(self, ctx):
        self.print_fn("Enter variable_reference")

    def enterName(self, ctx):
        self.print_fn("Enter name: %s" % ctx.getText())

    def enterCommand(self, ctx):
        self.print_fn("Enter command: %s" % ctx.getText())
b80e9cf943a8b940d91d79b06810e58a7d6e5033
<mask token>


class Listener(BashastBaseListener):
    <mask token>
    <mask token>
    <mask token>
    <mask token>

    def enterBrace_expansion(self, ctx):
        self.print_fn('Enter Brace_expansion')
    <mask token>

    def enterVariable_reference(self, ctx):
        self.print_fn('Enter variable_reference')
    <mask token>

    def enterCommand(self, ctx):
        self.print_fn('Enter command: %s' % ctx.getText())

<mask token>


class Listener(BashastBaseListener):

    def __init__(self, print_fn):
        BashastBaseListener.__init__(self)
        self.print_fn = print_fn
    <mask token>
    <mask token>
    <mask token>

    def enterBrace_expansion(self, ctx):
        self.print_fn('Enter Brace_expansion')
    <mask token>

    def enterVariable_reference(self, ctx):
        self.print_fn('Enter variable_reference')

    def enterName(self, ctx):
        self.print_fn('Enter name: %s' % ctx.getText())

    def enterCommand(self, ctx):
        self.print_fn('Enter command: %s' % ctx.getText())

<mask token>


class Listener(BashastBaseListener):

    def __init__(self, print_fn):
        BashastBaseListener.__init__(self)
        self.print_fn = print_fn

    def enterFirst_line_comment(self, ctx):
        self.print_fn('Enter first line comment')

    def enterFor_expr(self, ctx):
        self.print_fn('Enter for expr')

    def enterWspace(self, ctx):
        self.print_fn('Enter wspace')

    def enterBrace_expansion(self, ctx):
        self.print_fn('Enter Brace_expansion')
    <mask token>

    def enterVariable_reference(self, ctx):
        self.print_fn('Enter variable_reference')

    def enterName(self, ctx):
        self.print_fn('Enter name: %s' % ctx.getText())

    def enterCommand(self, ctx):
        self.print_fn('Enter command: %s' % ctx.getText())

<mask token>


class Listener(BashastBaseListener):

    def __init__(self, print_fn):
        BashastBaseListener.__init__(self)
        self.print_fn = print_fn

    def enterFirst_line_comment(self, ctx):
        self.print_fn('Enter first line comment')

    def enterFor_expr(self, ctx):
        self.print_fn('Enter for expr')

    def enterWspace(self, ctx):
        self.print_fn('Enter wspace')

    def enterBrace_expansion(self, ctx):
        self.print_fn('Enter Brace_expansion')

    def enterRange(self, ctx):
        self.print_fn('Enter range')

    def enterVariable_reference(self, ctx):
        self.print_fn('Enter variable_reference')

    def enterName(self, ctx):
        self.print_fn('Enter name: %s' % ctx.getText())

    def enterCommand(self, ctx):
        self.print_fn('Enter command: %s' % ctx.getText())

'''
Created on Jan 7, 2015

@author: ekondrashev
'''
import BashastBaseListener
class Listener(BashastBaseListener):
    def __init__(self, print_fn):
        BashastBaseListener.__init__(self)
        self.print_fn = print_fn

    def enterFirst_line_comment(self, ctx):
        self.print_fn("Enter first line comment")

    def enterFor_expr(self, ctx): 
        self.print_fn("Enter for expr")
    
    def enterWspace(self, ctx):
        self.print_fn("Enter wspace")
        
    def enterBrace_expansion(self, ctx):
        self.print_fn("Enter Brace_expansion")
    
    def enterRange(self, ctx):
        self.print_fn("Enter range")

    def enterVariable_reference(self, ctx):
        self.print_fn("Enter variable_reference")

    def enterName(self, ctx):
        self.print_fn("Enter name: %s" % ctx.getText())

    def enterCommand(self, ctx):
        self.print_fn("Enter command: %s" % ctx.getText())