human
I am working on the file "ANTLR4-Python/SLR-Parser-Generator/Shift-Reduce-Parser-AST.ipynb".
The first task is:
The cell below tests your tokenizer.  Your task is to compare the output with the output shown above.
Can you write Python program for it?

=====
Write me a Python program to compare the output with the output shown above?
assistant
#Here is Python program to compare the output with the output shown above.

with open('Examples/sum-for.sl', 'r', encoding='utf-8') as file:
    program = file.read()
tokenize(program)  

class ShiftReduceParser():
    def __init__(self, actionTable, gotoTable):
        self.mActionTable = actionTable
        self.mGotoTable   = gotoTable