Skip to content
#

interpreter

Here are 2,776 public repositories matching this topic...

Dohxis
Dohxis commented Mar 9, 2017

Here I have another suggestion, this time about our Gravity's CLI. I come up with this list of improvements which I think should benefit the project:

  • If no arguments passed it should display help section instead of opening REPL
  • To open REPL add a new flag for example gravity --repl
  • gravity new [project] - a new simple command to create new project. (A wizard which helps with co
st0012
st0012 commented Apr 16, 2020

These are the feedback from @yawniek on slack

  • the vm.New vm.New and v.ExecInstructions methods would profit from some minimal documentation, especially what all the "paths" actually mean. some of them seemed semi obvious..
  • same for RegisterExternalClass ExternalClass and vm.Method albeit those are relatively clear
  • how can i load a class into toplevel so i dont need a requir
Sammyalhashe
Sammyalhashe commented May 1, 2020

Correct me if I'm wrong, but isn't it not correct that you pass globals as the surrounding environment in LoxFunction's call (https://www.craftinginterpreters.com/functions.html#function-objects)? If I understand this correctly, globals holds a fixed reference to the outer global environment, and it doesn't appear to change. Maybe I missed something, but when you define a recursive call, like yo

whereswaldon
whereswaldon commented Oct 5, 2018

I tried Oh, and it seems interesting. Certainly the programmability aspect is cool, and I like the idea of the type system. However, there's no documentation about how to customize anything (your prompt, for instance). I could read the source code, but I decided to try the shell on a whim at work, and I can't reasonably spend the time. I think it would be pretty easy to put together some guidance

Improve this page

Add a description, image, and links to the interpreter topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the interpreter topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.