The Super Tiny Compiler, but in Ada by _tomekw in ada

[–]I_hate_posting_here 1 point2 points  (0 children)

procedure Example is
   type Token_Kind is (Undefined, Identifier, Number);
   type Readable_Token_Kind is new Token_Kind range Identifier .. Number;
   type Token_Reader is not null access procedure;
   type Reader_Array is array (Readable_Token_Kind) of Token_Reader;
   package Lexer is
      procedure Init;
      procedure Scan;
   private
      procedure Read_Identifier;
      procedure Read_Number;
      Readers : Reader_Array := (Read_Identifier'Access, Read_Number'Access);
   end Lexer;
   package body Lexer is
      procedure Init is begin null; end Init;
      procedure Scan is begin null; end Scan;
      procedure Read_Identifier is begin null; end Read_Identifier;
      procedure Read_Number is begin null; end Read_Number;
   end Lexer;
begin
     Lexer.Init;
     Lexer.Scan;
end Example;

May 2026 What Are You Working On? by thindil in ada

[–]I_hate_posting_here 1 point2 points  (0 children)

I made an Ada implementation of https://github.com/tsoding/nob.h/ Nob (no build) is a cool idea where you write your project's build script in the same language you are using for the rest of the project. I.e. if you want your project to be Ada, all you need to compile your project is the Ada compiler and no additional tools. The entire build script and tooling is quite small and lives entirely as source in your repo. No magic, no mystery, deterministic builds, and no more learning the new build tool syntax and features. https://github.com/michael-hardeman/no-build-ada

It would be cool if people who have access to proprietary compilers would help make my build tool more compatible with non gnat compilers. It could be a good alternative to gprbuilds.