Git Product home page Git Product logo

minilang's People

Contributors

emolli avatar

Stargazers

 avatar

Watchers

 avatar  avatar

minilang's Issues

Compile failed: multiple definition of `mode'

[max@base MiniLang]$ bash build.sh

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'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.