Code Monkey home page Code Monkey logo

Comments (3)

mnp avatar mnp commented on July 18, 2024

I've managed to figure out this much :-) from chalk.c but it's not clear why a new scripting language is required.

#define CHALK_USAGE                                                            \
    "usage: chalk [options] [file] [arguments...]\n"                           \
    "Chalk is a nifty scripting language. It's designed to be intuitive, \n"   \
    "small, and easily embeddable. Options are:\n"                             \
    "  --debug-gc -- Stress the garbage collector.\n"                          \
    "  --debug-compiler -- Print the compiled bytecode.\n"                     \
    "  --help -- Show this help text and exit.\n"                              \
    "  --version -- Print the application version information and exit.\n"

from os.

evangreen avatar evangreen commented on July 18, 2024

Chalk is a new scripting language that I wrote for Minoca OS. Like the comment above says, I wanted something that was small, embeddable, had a familiar syntax. I was also designing it with the eye of potentially taking it into kernel mode some day, though as of today I don't have a need for that. What I did need is a basic description language for the msetup recipes and upcoming build system.

I realize there are other scripting languages that fit my criteria, but in the interest of not dragging in unknown dependencies I decided to just create a small one on my own.

I'll mention here that Chalk is actually in transition right now, as it took me two attempts to write it. The files in apps/lib/chalk are the old chalk interpreter which will be deleted soon. The Chalk interpreter that you found in apps/ck is the new interpreter going forward.

The .ck files sprinkled around everywhere are part of a build engine I'm creating with Chalk called mingen. The goal is to switch from Makefiles to Ninja, with mingen being the front end that creates Ninja files.

I just finished porting msetup to use the new Chalk interpreter, but mingen and all the .ck files are still on the old interpreter, which has incompatible syntax (mostly the fact that in the new interpreter you need to declare variables with var, where you could just start using them in the old interpreter).

So there's the rundown on Chalk.

from os.

evangreen avatar evangreen commented on July 18, 2024

I'm going to to ahead and close this one now. Feel free to email me if you've got more questions.

from os.

Related Issues (20)

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.