shitshow

A shitty programming language
git clone git://git.bain.cz/shitshow.git
Log | Files | Refs | README

parser.h (535B)


      1 
      2 #ifndef SHITSHOW_PARSER_H
      3 #define SHITSHOW_PARSER_H
      4 
      5 #include <string>
      6 #include <vector>
      7 #include <list>
      8 #include <memory>
      9 #include "../lexer/lexer.h"
     10 #include "parser_elements.h"
     11 
     12 namespace parser {
     13 
     14     elements::Block *parse_block(const std::vector<lexer::Token> &token_stream, int start_at);
     15 
     16     elements::Statement *parse_statement(const std::vector<lexer::Token> &token_stream);
     17 
     18     elements::Expression *parse_expression(const std::vector<lexer::Token> &token_stream, int start_at, int end_at);
     19 }
     20 
     21 #endif //SHITSHOW_PARSER_H