mniak / graphite

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Graphite: Code without syntax

This is an experiment trying to create a compiler that skips all the syntactic parsing.

The proposal is that the code is already born in the editor as an abstract semantic graph.

I intend to use the LLVM infrastructure to create the compiler.

I'm starting with the part of starting to draw the semantic graph via code and then continue with the following features:

  • Serializer in human readable format with configurable syntax.
  • Serializer and deserializer in machine readable format so that the "code" can be stored and read. It is interesting that this is in some format that is still slightly human readable to facilitate the differential comparison and therefore better integration with git. Maybe a YAML.
  • [Structured Editor] (https://en.wikipedia.org/wiki/Structure_editor) to directly edit the semantic graph
  • "Precompiler" to LLVM IR
  • Integration with LLVM so that I can use a single command to perform the complete compilation from the "source" (graph) to the executable binary.

About

License:MIT License


Languages

Language:Go 100.0%