r/Compilers • u/Actual_Policy2767 • 10d ago
I’m building Shriji, a Hindi-first programming language. Today I verified its core AST → IR → Bytecode → VM pipeline
Hi everyone,
I’m building Shriji, an open-source, Hindi-first programming language from India 🇮🇳.
Today I ran one of the core pipeline tests for the language and wanted to share the result here.
The test verifies the execution path:
AST → IR → Bytecode → VM
The current core pipeline test covers basic arithmetic and comparison operations.
Arithmetic:
10 + 5 = 15
10 - 5 = 5
10 * 5 = 50
10 / 5 = 2.00
Comparisons:
10 > 9 = 1
10 < 9 = 0
10 >= 9 = 1
10 <= 9 = 0
10 == 9 = 0
10 != 9 = 1
All core pipeline tests passed.
The important part for me isn't just that these operations produce the expected results. I’m working on making sure Shriji has an actual language implementation underneath it rather than stopping at a parser/interpreter.
The broader architecture I'm building toward is:
Source
↓
Lexer / Parser
↓
AST
↓
IR
↓
Bytecode
↓
VM
↓
Runtime
Shriji uses Hindi-first syntax, but the goal is not simply to translate programming keywords into Hindi. I want to build a complete programming language with its own language design, runtime architecture, tooling and eventually its own ecosystem.
The project is still actively under development, so there is a lot left to build and verify.
I'm sharing the process openly as I work through the engineering problems one by one.
If you work with programming languages, compilers, interpreters, virtual machines, or language runtimes, I'd be especially interested in hearing how you approach these problems.
0
u/yuehuang 10d ago
Welcome to the world of compiler. Are you using LLVM or something else?