#NEWLINE# def parse( self , text ) : #NEWLINE# #INDENT# tokens = tokenizer . Tokenizer ( text , self . ui ) #NEWLINE# while tokens . hasTokens ( ) : #NEWLINE# #INDENT# if Callback . peek ( tokens ) : #NEWLINE# #INDENT# self . constructs . append ( Callback ( tokens ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if Interface . peek ( tokens ) : #NEWLINE# #INDENT# self . constructs . append ( Interface ( tokens ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if Dictionary . peek ( tokens ) : #NEWLINE# #INDENT# self . constructs . append ( Dictionary ( tokens ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if Enum . peek ( tokens ) : #NEWLINE# #INDENT# self . constructs . append ( Enum ( tokens ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if Typedef . peek ( tokens ) : #NEWLINE# #INDENT# self . constructs . append ( Typedef ( tokens ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if Const . peek ( tokens ) : #NEWLINE# #INDENT# self . constructs . append ( Const ( tokens ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ImplementsStatement . peek ( tokens ) : #NEWLINE# #INDENT# self . constructs . append ( ImplementsStatement ( tokens ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . constructs . append ( SyntaxError ( tokens , None ) )