Skip to content

MyNameIsTrez/grug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 

Repository files navigation

grug

See my blog post for an introduction to the grug modding language.

You can find its test suite here.

grug.c contains documentation at the top of the file, and the MIT license at the very bottom. grug.h refers to the MIT license in grug.c.

Sections

grug.c is composed of sections, which you can jump between by searching for //// in the file:

  1. GRUG DOCUMENTATION
  2. INCLUDES AND DEFINES
  3. UTILS
  4. RUNTIME ERROR HANDLING
  5. JSON
  6. PARSING MOD API JSON
  7. READING
  8. TOKENIZATION
  9. PARSING
  10. DUMPING AST
  11. APPLYING AST
  12. TYPE PROPAGATION
  13. COMPILING
  14. LINKING
  15. HOT RELOADING

Programs showcasing grug

Settings

Search for #define in grug.c (with Ctrl+F). All the defines are configurable.

If you want to allow your compiler to optimize grug.c extra hard, add the compiler flag -DCRASH_ON_UNREACHABLE.

Releases

No releases published

Packages

No packages published

Languages