Add the drafts of the two posts

This commit is contained in:
2019-08-03 15:45:14 -07:00
parent 708f9bebfa
commit f42cb900cf
5 changed files with 609 additions and 0 deletions

26
code/compiler_parser.y Normal file
View File

@@ -0,0 +1,26 @@
%{
#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