Show HN: Rift (Flexible Translator) – Build Languages in Days, Not Years
Configuration-based language building (not code generation) Compile-time safety through token triplets (type, memory, value) Stage-bound execution pipeline (0-6 stages) R-syntax for inline regex without escape hell Build a working language prototype in days
Key Innovation: The token triplet system ensures compile-time safety: ctypedef struct { token_type; // identifier, keyword, constant token_memory; // static, dynamic, fluid token_value; // immediate, deferred, computed } rift_token_t; Real Usage: I'm using RIFT to build GosiLang – a polyglot language that talks to any programming language (interpreted or compiled). What took a year with YACC now takes weeks. Technical Details:
Written in C (migrating to Rust for R-syntax support) Stage-bound configuration: .riftrc.N files Error zones: 0-3 (OK), 3-6 (Warning), 6-9 (Critical), 9-12 (Panic) Detach mode for full language independence
Currently building the community around RIFT philosophy. Looking for "RIFTers" who want to build languages without the traditional pain. GitHub: https://github.com/obinexus/rift Video walkthrough: https://www.youtube.com/watch?v=rLkzHF7LXUA (28min technical deep dive) Ecosystem: https://github.com/stars/obinexus/lists/the-rift-ecosystem
No comments yet