BuildYourOwnLisp
BuildYourOwnLisp copied to clipboard
Learn C and build your own programming language in under 1000 lines of code!
Getting Segmentation fault on chapter 6 using mpc d59264a In the book ``` mpca_lang(MPCA_LANG_DEFAULT, " \ number : /-?[0-9]+/ ; \ operator : '+' | '-' | '*' | '/'...
What I get is a plain POSIX tar archive, not a compressed one.
The reverse polish notation equivalent for `1 + 2 + 6` looked off to me, so I checked with: https://raj457036.github.io/Simple-Tools/prefixAndPostfixConvertor.html Indeed, it should be `+ + 1 2 6` (it...
How could I have reverse polish notation expressions in my language? `expr : | + ;` Results in `error: Maximum recursion depth exceeded!`
This issue is meant to follow [mpc#108](https://github.com/orangeduck/mpc/pull/121) so that we can synchronize the changes made to this book and the library that supports it.
Has their been a change in mpc syntax since the last website update? Trying to follow tutorial and running into an issue at chapter 6, trying to run the following...
In chapter 4, MingW users could use [wineditline](http://mingweditline.sourceforge.net/) as a drop-in replacement for editline. For MSYS2 (MingW-64) it is only necessary to install the package mingw-w64-x86_64-wineditline. `pacman -S mingw-w64-x86_64-wineditline` Compilation...
##Error## `REPL.c:4:10: fatal error: 'editline/readline.h' file not found` ##Solution## There is a common error on including ``. The solution is to remove it given many users on MacOS X that...
We can instead use `atol` if we want to convert to a long.
In the examples of correct output from the parser it says I should get: ``` lispy> hello :1:1: error: expected whitespace, '+', '-', '*' or '/' at 'h' lispy> /...