2025-12-06 14:44:59 +11:00
2025-12-06 14:35:13 +11:00
2025-12-06 14:35:13 +11:00
2025-11-23 13:37:08 +11:00
2025-11-24 10:15:53 +11:00
2025-12-06 14:44:59 +11:00

Ground, but written in C this time

This repo houses the new Ground interpreter, which will replace the old C++ interpreter.

Features of this interpreter:

  • Written in C instead of C++
  • Somewhat organised and readable codebase
  • Not super buggy (yet)
  • Uses standard, portable C*
  • Actually speedy (typically 3-5x faster than Python, similar results to C)
  • 95% more memory efficient than original Ground
  • Up to 5x faster than original Ground
  • 90% smaller binary than original Ground

Now that Ground's features have mostly been finalised, this interpreter can be built with care to many features not initially planned, like functions and data structures

*so far, only tested on Linux, but hopefully should work on other platforms as well

Progress marker:

  • Lexer
  • Parser
    • Labels
    • Instructions
    • Values
    • References
  • Interpreter
    • Labels
    • Console I/O
    • Control flow
    • Data
      • Variable creation
      • Variable access
      • Lists
        • Creation
        • Access
      • String operations
    • Maths
    • Comparisions
    • Type conversions
    • Functions
      • Define functions
      • Call functions
      • Return values (type checked)
      • Arguments for functions
      • Jumping within functions
    • Custom data structures
    • Working with external libraries
Description
Ground interpreter written in C
Readme GPL-3.0 242 KiB
Languages
C 98.8%
Makefile 1.2%