27 lines
312 B
Plaintext
27 lines
312 B
Plaintext
%{
|
|
#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
|
|
|