Advertisement
Guest User

Untitled

a guest
Feb 12th, 2016
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. #ifndef GRAMMAR_H
  2. #define GRAMMAR_H
  3.  
  4. #include <stdio.h>
  5. #include "lexer.h"
  6. #include "ast.h"
  7.  
  8. typedef struct grammar
  9. {
  10. lexer * l;
  11. } grammar;
  12.  
  13. void init_grammar(grammar * g, lexer * l);
  14. ast_base * build_ast(grammar * g);
  15. void destroy_grammar(grammar * g);
  16.  
  17.  
  18. /*
  19. * Read functions to build AST parts
  20. */
  21. ast_base * read_function_ast_node(grammar * g);
  22. ast_base * read_function_body(grammar * g);
  23. #endif //GRAMMAR_H
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement