From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 2002:ad4:4441:: with SMTP id l1mr12701126qvt.74.1588846159135; Thu, 07 May 2020 03:09:19 -0700 (PDT) X-Received: by 2002:aca:31ce:: with SMTP id x197mr6049061oix.157.1588846158775; Thu, 07 May 2020 03:09:18 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.gegeweb.eu!gegeweb.org!usenet-fr.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 7 May 2020 03:09:18 -0700 (PDT) Complaints-To: groups-abuse@google.com Injection-Info: google-groups.googlegroups.com; posting-host=2a02:1206:4544:3750:5dcd:c918:fa36:1944; posting-account=gRqrnQkAAAAC_02ynnhqGk1VRQlve6ZG NNTP-Posting-Host: 2a02:1206:4544:3750:5dcd:c918:fa36:1944 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <11001441-9eb2-48bc-985f-de467327b000@googlegroups.com> Subject: Ann: HAC v.0.05 From: gautier_niouzes@hotmail.com Injection-Date: Thu, 07 May 2020 10:09:19 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader01.eternal-september.org comp.lang.ada:58622 Date: 2020-05-07T03:09:18-07:00 List-Id: 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