literals/directory, expression non-terminals in the
parsers/, and statements in the
src/stdlib/directory. In this root directory, you'll see two files:
stdlib.es6. Each of these have their own uses:
stdlib.es6: This constructs the global scope (i.e. the standard library).
api.es6: This is the API itself, it defines useful functions and provides the Cheddar primitives (
CheddarNumber, etc.) to you. This also helps avoid cyclic dependency errors.
<name>would be replaced with the name of that specific item.
ns/and a folder in the same directory.
<name>.es6will be where your class/namespace is defined. Individual method implementations can go in the folder you created. For example, if I was creating a package named "Geometry" my files/folders would look like: