Ada 95 compiler to bootstrap GNAT
  • Scheme 61.1%
  • Yacc 18%
  • Lex 12.2%
  • C 8.3%
  • Makefile 0.4%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2025-10-04 17:20:53 +08:00
compile compile0 for sem_ch12.adb 2025-10-04 17:20:53 +08:00
parse also need to escape '\\' 2025-09-15 14:34:30 +08:00
LICENSE Initial commit 2025-09-14 10:34:00 +02:00
README.md update README 2025-09-23 11:42:20 +08:00

ada95-bootstrap

This project aims to make an Ada 95 compiler to bootstrap GNAT. The goal is to compile the Ada front end in GCC 3.4.6.

parser

This parser makes use of the Ada 95 Lex specification and YACC grammar listed at https://www.adaic.org/ada-resources/standards/ada-95-documents/. I wrote yacc_ast_gen to build this parser, which can convert Ada source code to JSON or S-expression.

compiler

I'm currently working on the compiler. I write the compiler in Guile Scheme to process the S-expression that the parser generates from the Ada source code.