Skip to content
This repository has been archived by the owner on Sep 19, 2024. It is now read-only.
/ L0 Public archive
forked from artcompiler/L0

Starter language for Graffiticode

License

Notifications You must be signed in to change notification settings

Learnosity/L0

 
 

Repository files navigation

Making an artcompiler

Steps include

  • Get, build and start the Graffiticode host app (https://github.com/graffiticode/graffiticode).
  • Clone and initialize the starter artcompiler (L0) as a new language (e.g. L0).
  • Start your compiler as a local service to make sure that all is well.
    • $ cd ../L0
    • $ make
  • Make sure everything is good.
    • Visit your local GC server (e.g. http://localhost:3000/lang?id=0) to test.
    • Paste into the code view: "hello, world!"...
    • See "hello, world!" in the form view.
  • Design a language that allows you to say things that are interesting and beautiful.
  • Edit ./src/lexicon.js to define a vocabulary for that language.
  • Edit ./src/compiler.js to translate the ASTs produced from GC into object code that expresses the output of that language.
  • Edit ./src/viewer.js to render that object code in an interesting and beautiful way.
  • Test your changes.
    • $ make
    • Edit the code in the code view.
  • Repeat to taste.

Development mode

This command will restart the dev server when changes to src/, index.js, or package.json are detected.

$ npm run watch

About

Starter language for Graffiticode

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 79.5%
  • CSS 20.2%
  • Makefile 0.3%