https://github.com/arbor-sim/arblang
https://github.com/arbor-sim/arblang
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/arbor-sim/arblang
- Owner: arbor-sim
- Created: 2021-07-19T12:49:52.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2022-04-08T11:25:42.000Z (about 4 years ago)
- Last Synced: 2025-04-14T13:17:03.380Z (about 1 year ago)
- Language: C++
- Size: 418 KB
- Stars: 0
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# arblang
This repository contains the functionality necessary to build
an end-to-end compiler for the `arblang` DSL.
The arblang DSL specifications can be found under `doc/specifications`,
but not all features described in the DSL are supported by this initial
version of the arblang compiler.
The documentation for the compiler functionality is contained in the
source code.
To test the compiler:
```
$ mkdir build && cd build
$ cmake ..
$ make -j compiler
$ ./bin/compiler -o output_name -N namespace /path/to/arblang/source
```
This will generate 2 files: `output_name.hpp` and `output_name_cpu.cpp`,
written against arbor's mechanism ABI, which can be compiled into a catalogue
to be used by the arbor CPU simulation using `arbor-build-catalogue`.
To run the unit tests:
```
$ make -j unit
$ ./bin/unit
```