HAC (HAC Ada Compiler) is a quick, small, open-source Ada
compiler, covering a subset of the Ada language.
HAC is itself fully programmed in Ada.
Web site: http://hacadacompiler.sf.net/
From there, links to sources and an executable for Windows.
Source repositories:
#1 svn: https://sf.net/p/hacadacompiler/code/HEAD/tree/trunk/
#2 git: https://github.com/zertovitch/hac
* Main improvements since v.0.0996:
- packages and subpackages are now supported
- modularity: packages and subprograms can be standalone
library units, stored in individual files with
GNAT's naming convention, and accessed from other units
via the WITH clause
- validity checks were added for a better detection of
uninitialized variables.
Package examples and modularity tests have been added.
Particularly, a new PDF producer package with a few demos
is located in the ./exm/pdf directory.
Enjoy!
Gautier
__
PS: for Windows, there is an integrated editor that embeds HAC:
LEA: http://l-e-a.sf.net
PPS: HAC will be shown at the Ada-Europe conference (presentation + tutorial) >http://www.ada-europe.org/conference2022/
#2 git: https://github.com/zertovitch/hac
On 14/5/2022 10:35 pm, Gautier write-only address wrote:
#2 git: https://github.com/zertovitch/hac
I just tested this on MacOS Monterey 12.3.1 and it works perfectly out
of the box (as expected for Ada code :)
Great work Gautier!
which subset of the Ada language is covered?
Doctor Who:
which subset of the Ada language is covered?
Quoting from ./doc/hac.txt (section "Language subset"):
"The available Ada language subset supported by HAC is so far, roughly,
the "Pascal subset", plus tasking, plus packages, less pointers.
From a different perspective, HAC supports Ada 83, less pointers, less generics,
less unconstrained types, plus a few items from Ada 95 and 2005.
Recursion and nested subprograms are supported."
and: "Tasks are implemented, but not working yet."
HTH
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 365 |
Nodes: | 16 (2 / 14) |
Uptime: | 06:23:14 |
Calls: | 7,785 |
Files: | 12,914 |
Messages: | 5,750,441 |