Documentation ¶
Overview ¶
Package compiler is the entrypoint to Joy's compiler It follows the steps outlined in: https://mat.tm/joy/#how
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Parse ¶
Parse loads, indexes and graphs the program
This is breaking down our program into all the pieces we need to build it back up as a Javascript program.
Eventually, we'll be able use this stage separately from assembling to incrementally compile packages
Types ¶
type Config ¶
type Config struct { // build a development or production bundle Development bool // path to runtime code (e.g. for channel support) RuntimePath string `valid:"required"` // path to the macro library MacroPath string `valid:"required"` // path to joy's stdlib StdPath string `valid:"required"` // packages to compile Packages []string }
Config for the compiler
Click to show internal directories.
Click to hide internal directories.