* Ann: HAC v.0.05
@ 2020-05-07 10:09 gautier_niouzes
0 siblings, 0 replies; only message in thread
From: gautier_niouzes @ 2020-05-07 10:09 UTC (permalink / raw)
HAC (HAC Ada Compiler) is available on two open-source development sites:
http://hacadacompiler.sf.net/
https://github.com/zertovitch/hac
HAC is a small, open-source Ada compiler, covering a subset of
the Ada language. There are chances you bump quickly into limitations.
The documentation is more or less non-existent, but a glimpse into the
file hac_pack.ads and some experimentation could be helpful.
The time spent by HAC for compiling is rather short, so some users
won't notice it even happens :-). This is an advantage for people who
don't know what a compiler is, but could be interested in programming
in Ada.
The latest additions are:
------------------------
- type VString (variable-size string), with concatenation ("&"
operator) including concatenation with numeric types (their
image), comparison operators, Element, Length, Slice, Index,
"*", Trim, Image, Integer_Value, Float_Value functions;
Get_Line, Put, Put_Line subprograms for VString
- Argument_Count, Argument (the latter returns a VString)
- Get_Env, Set_Env, Shell_Execute system subprograms
HAC programs are real Ada programs, they can be built by a "serious"
Ada compiler, through the HAC_Pack compatibility package.
See the exm/hac_exm.gpr and test/hac_test.gpr project files
for the GNAT compiler.
To build HAC itself for the command-line, all you need (with GNAT) is
to run "gprbuild -P hac".
Then you get the executable hax[.exe].
The command "hax" alone will show you basic help.
HAX: command-line compilation and execution for HAC (HAC Ada Compiler)
Compiler version: 0.05 dated 06-May-2020.
URL: http://sf.net/projects/hacadacompiler/
Usage: hax [options] main.adb [command-line parameters for main]
Options: -h : this help
-v, v1 : verbose
-v2 : very verbose
-a : assembler output
-d : dump compiler information
Enjoy
Gautier
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-05-07 10:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-07 10:09 Ann: HAC v.0.05 gautier_niouzes
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox