compiler/Dart__Parser.st
changeset 10 5df5a2f8e4b5
parent 6 06efdfe62106
equal deleted inserted replaced
9:ae0dabfd3321 10:5df5a2f8e4b5
     1 "{ Package: 'jv:dart/compiler' }"
     1 "{ Package: 'ctu:dart/compiler' }"
     2 
     2 
     3 "{ NameSpace: Dart }"
     3 "{ NameSpace: Dart }"
     4 
     4 
     5 PPCompositeParser subclass:#Parser
     5 PPCompositeParser subclass:#Parser
     6 	instanceVariableNames:'additiveExpression additiveOperator argumentList arguments
     6 	instanceVariableNames:'additiveExpression additiveOperator argumentList arguments
   981 
   981 
   982     "Created: / 12-03-2012 / 16:51:01 / Jan Vrany <jan.vrany@fit.cvut.cz>"
   982     "Created: / 12-03-2012 / 16:51:01 / Jan Vrany <jan.vrany@fit.cvut.cz>"
   983     "Modified: / 11-01-2013 / 11:35:52 / Jan Vrany <jan.vrany@fit.cvut.cz>"
   983     "Modified: / 11-01-2013 / 11:35:52 / Jan Vrany <jan.vrany@fit.cvut.cz>"
   984 ! !
   984 ! !
   985 
   985 
       
   986 !Parser methodsFor:'parsing'!
       
   987 
       
   988 parse: anObject
       
   989         "Parse anObject with the receiving parser and answer the parse-result or an instance of PPFailure."
       
   990 
       
   991         ^ self parse: anObject withContext: ParserContext new
       
   992 
       
   993     "Created: / 04-11-2014 / 00:23:51 / Jan Vrany <jan.vrany@fit.cvut.cz>"
       
   994 ! !
       
   995 
   986 !Parser::TokenParser class methodsFor:'instance creation'!
   996 !Parser::TokenParser class methodsFor:'instance creation'!
   987 
   997 
   988 for: tokenType
   998 for: tokenType
   989 
   999 
   990     ^self new tokenType: tokenType
  1000     ^self new tokenType: tokenType
  1028 version_HG
  1038 version_HG
  1029 
  1039 
  1030     ^ '$Changeset: <not expanded> $'
  1040     ^ '$Changeset: <not expanded> $'
  1031 ! !
  1041 ! !
  1032 
  1042 
       
  1043 
  1033 Parser initialize!
  1044 Parser initialize!