From 2589290a7dc34c5f6d1cfc48ae8c6adf708729f2 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sat, 11 Feb 2023 15:38:33 +0200 Subject: [IPL/T] Finished grammar and makefile compilation --- .../Implementation of Programming Languages/Transpiler/Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Year 2/Implementation of Programming Languages/Transpiler/Makefile') diff --git a/Year 2/Implementation of Programming Languages/Transpiler/Makefile b/Year 2/Implementation of Programming Languages/Transpiler/Makefile index 52c45ab..ad1bdf9 100644 --- a/Year 2/Implementation of Programming Languages/Transpiler/Makefile +++ b/Year 2/Implementation of Programming Languages/Transpiler/Makefile @@ -1,9 +1,9 @@ CC=gcc -CFLAGS= +CFLAGS=-lfl CXX=g++ CXXFLAGS= LEX=flex -YACC=bison +YACC=bison -t -d .PHONY: all all: build-frontend run-frontend build-transpiler run-transpiler @@ -18,11 +18,11 @@ build-lexer: .PHONY: build-parser build-parser: - cd frontend && $(YACC) commonlisp2transpilerstr.y && mkdir -p ../build/ && mv commonlisp2transpilerstr.tab.c ../build/ + cd frontend && $(YACC) commonlisp2transpilerstr.y && mkdir -p ../build/ && mv commonlisp2transpilerstr.tab.* ../build/ .PHONY: run-frontend run-frontend: - cd build/ && frontend.out < ../src.cl >> CLtree.h + cd build/ && ./frontend.out < ../src.cl >> CLTree.h .PHONY: build-transpiler build-transpiler: -- cgit v1.3.1-26-gb76a