https://github.com/codebrainz/metacc
Compiler for the Meta C language
https://github.com/codebrainz/metacc
Last synced: 10 months ago
JSON representation
Compiler for the Meta C language
- Host: GitHub
- URL: https://github.com/codebrainz/metacc
- Owner: codebrainz
- Created: 2012-04-15T06:40:25.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2012-05-20T11:33:20.000Z (over 13 years ago)
- Last Synced: 2025-01-15T11:47:50.855Z (12 months ago)
- Language: C
- Homepage:
- Size: 2.51 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
MetaC Compiler
=============
This is the testbed for the compiler for the new MetaC programming language.
Dependencies
-----------
In order to fully compile the MetaC compiler, you'll need at least the
following:
* GCC
* Autotools
* Libtool
* Java
For example on Ubuntu, you would run the following:
$ sudo apt-get install build-essential libtool default-jre
__Note:__
The MetaC compiler does not itself depend on the Java runtime, but it uses the
Java program ANTLR to generate the target C lexer/parser code. In the future,
it will not be required at all, except in "maintainer mode". The ANTLR C runtime
that the compiler uses is compiled directly in so that the target machine isn't
required to have it installed.
Installation
-----------
To compile and install the MetaC compiler, run the following commands:
$ ./configure
$ make
$ sudo make install
To see if the compiler is installed check the output of the following command:
$ which metacc
The result should be something like:
/usr/local/bin/metacc
Running
------
You can invoke the compiler on your source files as such:
$ metacc -o mybin main.mc [...]
Where `mybin` is the output binary, `main.mc` is the MetaC source file with
the `main` entry point function and `[...]` is zero or more source files.