src/Parser.h
changeset 145 e9d804821c48
parent 135 72912cf0dd18
child 146 dc7d3b7a918c
     1.1 --- a/src/Parser.h	Mon Jul 30 22:30:38 2012 -0700
     1.2 +++ b/src/Parser.h	Wed Aug 01 22:32:59 2012 -0700
     1.3 @@ -39,16 +39,23 @@
     1.4  
     1.5    private:
     1.6      void redeclarationError(BoundName *name);
     1.7 +    bool peek(TokenKind kind);
     1.8      bool match(TokenKind kind);
     1.9      bool expect(TokenKind kind);
    1.10      bool matchSemicolon();
    1.11  
    1.12      Scope *enterScope(Scope::Kind kind);
    1.13  
    1.14 +
    1.15      VariableDeclaration *variableDeclaration(TokenKind kind);
    1.16      bool matchName(String **name, TokenKind kind = TOK_NAME);
    1.17 +
    1.18 +    NameProxy *bind(Handle<String> name);
    1.19 +    BoundName *bindType(Handle<String> string);
    1.20 +
    1.21 +    ExpressionList *dimensions();
    1.22      String *expectName();
    1.23 -    NameProxy *bind(Handle<String> name);
    1.24 +
    1.25      Expression *primitive();
    1.26      Expression *call(Expression *callee);
    1.27      Expression *index(Expression *left);
    1.28 @@ -81,6 +88,8 @@
    1.29      Statement *globalStatement();
    1.30      Statement *returnStatement();
    1.31  
    1.32 +    bool setupIntrinsics();
    1.33 +
    1.34    public:
    1.35      Parser(Zone *zone, CompileContext &cc, const char *stream, size_t length);
    1.36