justinmeza / lci

A LOLCODE interpreter written in C.
http://lolcode.org
GNU General Public License v3.0
784 stars 105 forks source link

How can I build the project from the future branch? #81

Closed DarkblooM-IO closed 1 year ago

DarkblooM-IO commented 1 year ago

I was trying to test httpd.lol but ran into an issue and the apparent way to resolve it is to use the future branch, except I get this error when running make:

[ 10%] Building C object CMakeFiles/lci.dir/main.c.o
/home/darkbloom/Downloads/lci/main.c:112:10: fatal error: readline/readline.h: No such file or directory
  112 | #include <readline/readline.h>
      |          ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/lci.dir/build.make:104: CMakeFiles/lci.dir/main.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:6923: CMakeFiles/lci.dir/all] Error 2
make: *** [Makefile:146: all] Error 2

Enlightenment would be appreciated.

justinmeza commented 1 year ago

This likely means that the headers for the readline library are not installed. If you are on Linux, it should be something like this:

sudo apt-get install libreadline-dev
DarkblooM-IO commented 1 year ago

That was it, thank you!

DarkblooM-IO commented 1 year ago

Btw, sorry if this is inappropriate, but do you by any chance know of any existing interpreter for Objective LOLCODE?

justinmeza commented 1 year ago

I am not aware of any implementations, but the LOLCODE 1.3 spec added support for associative arrays and inheritance, which can be used to do some object-oriented programming.

justinmeza commented 1 year ago

You can see what is implemented in lci by taking a look at some of the unit tests here: test/1.3-Tests/12-Arrays/13-Inheritance/2-Assignment.

DarkblooM-IO commented 1 year ago

Gotcha, thanks