Ian Moffett fb0303c7a6 parser+lexer: Add proper counting of line numbers
Since the compiler is two-pass, having the incrementation performed in
the lexer would result in extraneous incrementations during the
preprocessing phase. We want line numbers for diagnostics during the
parsing phase and therefore a fix would be to have the parser filter
newlines out itself.

Signed-off-by: Ian Moffett <ian@mirocom.org>
2026-02-16 12:12:30 -05:00
2026-02-13 22:48:10 -05:00
2026-02-15 22:17:40 -05:00
2026-02-13 23:49:36 -05:00

The Rifle programming language

The Rifle programming language is an opinionated compiled systems language aimed to be as explicit as possible (i.e., avoiding the usage of implicit optimization).

Building

To build the Rifle compiler, simply run make in the project root.

Description
The Rifle programming language.
Readme BSD-3-Clause 117 KiB
Languages
C 99.3%
Makefile 0.7%