blog-static/code/compiler_parser.y

27 lines
312 B
Plaintext
Raw Normal View History

2019-08-03 15:45:14 -07:00
%{
#include <string>
#include <iostream>
#include "ast.hpp"
#include "parser.hpp"
%}
%token PLUS
%token TIMES
%token MINUS
%token DIVIDE
%token INT
%token DEFN
%token DATA
%token CASE
%token OF
%token OCURLY
%token CCURLY
%token OPAREN
%token CPAREN
%token COMMA
%token ARROW
%token EQUA
%token LID
%token UID