Aryadev Chavali afc0f9c034 main: deal with file read errors more appropriately, unify error interface
- ~read_file~ now returns an error code and takes the ~sv_t~ (which
  contains the file contents) by pointer.  We can now deal with the
  error in ~main~ directly.
- Make the return code of ~main~ a variable which error branches can
  set.  Unify the error branch and normal branch code.  Pattern for
  error handling is now unified.
2026-01-28 09:02:46 +00:00
2026-01-22 21:25:30 +00:00
2026-01-22 21:25:30 +00:00
2026-01-28 07:35:45 +00:00
2026-01-22 18:06:42 +00:00
2026-01-28 08:59:29 +00:00
2026-01-24 00:35:38 +00:00

┌───────────────────────┐
│     _    ____  _      │
│    / \  |  _ \| |     │
│   / _ \ | |_) | |     │
│  / ___ \|  _ <| |___  │
│ /_/   \_\_| \_\_____| │
└───────────────────────┘

Similar to Forth.  Compiles to C.
Native speed with simple semantics.

-----
Goals
-----
- Complete operational transpiler to C
- Ability to reuse compiled code (as object code) in top level ARL code.
- Static type system with informative errors

-------------
Issue tracker
-------------
See arl.org.

------------
Requirements
------------
- C compiler with support for C23, accessible via PATH
- GNU Make

------------------
Build instructions
------------------
$ make
... will generate a binary "arlc.out" in the build folder, which may be used to
compile ".arl" files into native code.

$ make MODE=debug
... will generate a debug binary that may be used for further examination and
logging.

You may specify the folder build artifacts are generated in by setting the DIST
variable in your make invocation i.e.
$ make DIST=<folder>

Similarly, the general flags used in the C compiler may be set via the CFLAGS
variable, with linking arguments set via the LDFLAGS variable.
Description
No description provided
Readme MIT 160 KiB
Languages
C 95.6%
Makefile 4.4%