awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
DulLabs avatar

DulLabs/bhai-lang

0
View on GitHub↗
4,100 stars·491 forks·TypeScript·MIT·12 viewsbhailang.js.org↗

Bhai Lang

Bhai-lang is a TypeScript-based toy programming language and custom syntax interpreter. It functions as an educational language implementation designed to demonstrate core concepts of variable management, conditional logic, and execution flow.

The project provides a custom command line interface and an interactive code playground for writing and testing scripts. It serves as a framework for programming language prototyping, allowing for the definition of custom syntax and execution logic.

The system covers the full interpreter pipeline, including lexical analysis, recursive descent parsing, and abstract syntax tree traversal. Its runtime manages program state through primitive data types and implements standard control flow and console output.

Features

  • Programming Language Development - Provides a complete implementation for creating a custom programming language, including its own syntax and execution logic.
  • Recursive Descent Parsers - Uses a recursive descent parser to translate source code into a structural abstract syntax tree.
  • Standalone CLI Runtimes - Provides a standalone command line interface to execute scripts and interact with the language runtime.
  • Language Interpreters - Provides an interactive interpreter for parsing and executing a custom language syntax.
  • CLI Script Execution - Ships a command line interface and interactive playground for executing scripts written in a custom syntax.
  • Custom Runtime Logic - Provides a runtime engine that executes custom logic and computations from non-standard syntax.
  • Custom Syntax Execution - Executes scripts written in a non-standard syntax to perform computations and logic via the CLI.
  • Language Interpreters - Implements a full language interpreter that converts custom code into executable actions using TypeScript.
  • Lexical Tokenizers - Implements a lexical tokenizer to convert raw source text into a stream of meaningful symbols.
  • Toy Language Implementations - Implements a custom toy programming language featuring a dedicated parser and execution environment written in TypeScript.
  • Interactive Code Playgrounds - Includes a web-based interactive playground for writing and testing custom scripts with immediate feedback.
  • Educational Implementations - Serves as a concrete codebase to illustrate core concepts of variable management and execution flow.
  • Language Implementation Prototyping - Designed as a toy language to experiment with and demonstrate parser and interpreter behavior.
  • Execution Flow Control - Implements control flow constructs including conditional logic, loops, and jump instructions.
  • Runtime Variable Stores - Maintains a central key-value map to track variable state across the execution scope.
  • Variable and Constant Declarations - Manages program state through the declaration and modification of primitive variables.
  • Tree Traversal - Implements programmatic visitation of abstract syntax tree nodes to execute program operations.
  • Dynamic Typing - Supports dynamic typing where variable types are assigned and tracked at runtime.

Star history

Star history chart for dullabs/bhai-langStar history chart for dullabs/bhai-lang

How this analysis was created: This summary and feature list are AI-generated from collected project material and can contain mistakes. Stars, license and language are imported from GitHub. Inclusion does not mean that we have tested or audited this project. Check the source documentation for any feature you depend on. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Projects sharing features with Bhai Lang

These projects share indexed features with Bhai Lang. Shared tags can include platform or build tooling; verify the primary use case before treating a result as a replacement.
  • pegjs/pegjspegjs avatar

    pegjs/pegjs

    4,908View on GitHub↗

    PegJS is a parsing expression grammar tool and JavaScript parser generator. It functions as a grammar compiler that transforms formal grammar specifications into executable JavaScript code for analyzing structured text and processing complex input strings. The system generates deterministic parsers that avoid the ambiguity of context-free grammars. It utilizes a packrat parsing model with memoization to ensure linear time complexity and employs recursive descent parsing to process input in a top-down hierarchical manner. The toolset supports the implementation of domain-specific languages an

    JavaScript
    View on GitHub↗4,908
  • alecthomas/participlealecthomas avatar

    alecthomas/participle

    3,869View on GitHub↗

    Participle is a Go parser generator and toolkit for building language frontends. It provides a declarative grammar framework that uses reflection and struct tags to map input patterns directly into typed data structures. The library features a stateful lexical analyzer that employs state machines to handle nested or modal patterns. It includes a lexer code generator to produce optimized code, reducing runtime memory allocations and increasing throughput. The project covers recursive descent parsing with support for union types via sealed interfaces and custom parsing logic through interface-

    Goastebnfgo
    View on GitHub↗3,869
  • acornjs/acornacornjs avatar

    acornjs/acorn

    11,402View on GitHub↗

    Acorn is a JavaScript parser that converts source text into a structured abstract syntax tree. It follows the ESTree specification to produce a standardized JSON tree format, enabling consistent analysis of code structure and language versions. The project features a plugin-based grammar extension system that allows the base parser to be extended with custom rules for experimental or non-standard language features. It also includes syntax error recovery, which inserts placeholder nodes into the tree when encountering invalid code to allow parsing to continue. The toolset covers static analys

    JavaScript
    View on GitHub↗11,402
  • lotabout/write-a-c-interpreterlotabout avatar

    lotabout/write-a-C-interpreter

    4,343View on GitHub↗

    This project is a C language interpreter and a practical implementation of a programming language. It parses and executes C source code directly, removing the requirement for a separate compilation step. The interpreter is designed for self-hosting, meaning it is capable of interpreting its own source code to demonstrate recursive language processing and execution. The system covers the primary stages of language processing, including lexical analysis, recursive descent parsing, and tree-walk interpretation using an abstract syntax tree. It manages memory and scope through a dynamic symbol t

    C
    View on GitHub↗4,343
Compare all 30 related projects→

Frequently asked questions

What does dullabs/bhai-lang do?

Bhai-lang is a TypeScript-based toy programming language and custom syntax interpreter. It functions as an educational language implementation designed to demonstrate core concepts of variable management, conditional logic, and execution flow.

What are the main features of dullabs/bhai-lang?

The main features of dullabs/bhai-lang are: Programming Language Development, Recursive Descent Parsers, Standalone CLI Runtimes, Language Interpreters, CLI Script Execution, Custom Runtime Logic, Custom Syntax Execution, Lexical Tokenizers.

Which projects share features with dullabs/bhai-lang?

Projects with overlapping indexed features include: alecthomas/participle — Participle is a Go parser generator and toolkit for building language frontends. It provides a declarative grammar… pegjs/pegjs — PegJS is a parsing expression grammar tool and JavaScript parser generator. It functions as a grammar compiler that… nikic/php-parser — PHP-Parser is a tool that converts PHP source code into an abstract syntax tree for static analysis and programmatic… acornjs/acorn — Acorn is a JavaScript parser that converts source text into a structured abstract syntax tree. It follows the ESTree… lotabout/write-a-c-interpreter — This project is a C language interpreter and a practical implementation of a programming language. It parses and… antlr/antlr4 — ANTLR is a grammar-based code generator and multi-language parser generator used to design and implement custom…