Skip to content

Latest commit

 

History

213 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GNC

Build And Test

GNC is Not C. It is intended for a better and more effective c language.

Grammar Features

  • int main() ...
  • declare local int variable
  • unary operation
  • binary operation
  • conditional statement
  • loop statement
  • scope
  • function
  • global variable
  • more types
  • cast expression
  • pointer
  • string
  • scanf() and printf()

Other Features

  • Pest as frontend
  • LLVM as backend
  • Parse tree and AST visualization using AntV
  • HLVM (High Level Virtual Machine Interpreter)
  • Full compiler capabilities in the browser using WASM

Build

GNC Cli

$ cargo build --package GNC --bin GNC

GNC Online

$ cd forntend
$ yarn
$ yarn build

Test

Environment

# install zx
$ npm i -g zx

Run

$ cd test
$ zx ./minidecaf-test.mjs

About

GNC is Not C. It is intended for a better and more effective c language.

Topics

Resources

Stars

19 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages