emolli / minilang Goto Github PK
View Code? Open in Web Editor NEWa simple compiler built with flex/bison
a simple compiler built with flex/bison
make: Entering directory '/home/max/Projects/MiniLang/src'
rm parser.tab.* lex.yy.*; rm *.o mini mini.tab.* ../programs/*/valid/*.c ../programs/*/valid/*.out ../programs/*/invalid/*.c ../programs/*/invalid/*.out
rm: cannot remove 'mini': No such file or directory
rm: cannot remove 'mini.tab.*': No such file or directory
rm: cannot remove '../programs/*/valid/*.c': No such file or directory
rm: cannot remove '../programs/*/valid/*.out': No such file or directory
rm: cannot remove '../programs/*/invalid/*.c': No such file or directory
rm: cannot remove '../programs/*/invalid/*.out': No such file or directory
make: *** [Makefile:20: clean] Error 1
make: Leaving directory '/home/max/Projects/MiniLang/src'
make: Entering directory '/home/max/Projects/MiniLang/src'
bison --yacc --defines=parser.tab.c --output=parser.tab.h mini.y
mini.y:43.1-5: warning: POSIX Yacc does not support %code [-Wyacc]
43 | %code requires
| ^~~~~
mini.y:99.14-17: warning: POSIX Yacc does not support string literals [-Wyacc]
99 | %left tEQUAL "=="
| ^~~~
mini.y:100.17-20: warning: POSIX Yacc does not support string literals [-Wyacc]
100 | %left tNOTEQUAL "!="
| ^~~~
mini.y:101.17-20: warning: POSIX Yacc does not support string literals [-Wyacc]
101 | %left tAND "&&"
| ^~~~
mini.y:102.11-14: warning: POSIX Yacc does not support string literals [-Wyacc]
102 | %left tOR "||"
| ^~~~
mini.y:124.1-14: warning: POSIX Yacc does not support %error-verbose [-Wyacc]
124 | %error-verbose
| ^~~~~~~~~~~~~~
mini.y:124.1-14: warning: deprecated directive: ‘%error-verbose’, use ‘%define parse.error verbose’ [-Wdeprecated]
124 | %error-verbose
| ^~~~~~~~~~~~~~
| %define parse.error verbose
mini.y: warning: fix-its can be applied. Rerun with option '--update'. [-Wother]
gcc -Wall -c -o parser.tab.o parser.tab.c
flex mini.l
gcc -Wall -c -o lex.yy.o lex.yy.c
gcc -Wall -c -o main.o main.c
gcc -Wall -c -o tree.o tree.c
gcc -Wall -c -o pretty.o pretty.c
gcc -Wall -c -o symbol.o symbol.c
gcc -Wall -c -o type.o type.c
gcc -Wall -c -o code.o code.c
gcc lex.yy.o parser.tab.o tree.o pretty.o symbol.o type.o code.o main.o -o mini -lfl
/usr/bin/ld: main.o:(.bss+0x8): multiple definition of `mode'; lex.yy.o:(.bss+0x28): first defined here
collect2: error: ld returned 1 exit status
make: *** [Makefile:6: all] Error 1
make: Leaving directory '/home/max/Projects/MiniLang/src'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.