Skip to content

Add Lox Language#7944

Open
thecoolguy62aws wants to merge 1 commit intogithub-linguist:mainfrom
thecoolguy62aws:main
Open

Add Lox Language#7944
thecoolguy62aws wants to merge 1 commit intogithub-linguist:mainfrom
thecoolguy62aws:main

Conversation

@thecoolguy62aws
Copy link
Copy Markdown

@thecoolguy62aws thecoolguy62aws commented May 2, 2026

Description

Add the Lox programming language. The Lox programming language is a learning language made for the book Crafting Interpreters demonstrating how to create an object-oriented, interpreted programming language in Java, then C.

Checklist:

  • I am adding a new extension to a language.

    • The new extension is used in hundreds of repositories on GitHub.com
    • I have included a real-world usage sample for all extensions added in this PR:
      • Sample source(s):
        • [URL to each sample source, if applicable]
      • Sample license(s):
    • I have included a change to the heuristics to distinguish my language from others using the same extension.
  • I am adding a new language.

    • The extension of the new language is used in hundreds of repositories on GitHub.com.
    • I have included a real-world usage sample for all extensions added in this PR:
      • Sample source(s):
      • Sample license(s):
        • inherited_method.lox is licensed MIT License owned by Robert Nystrom
        • fibonacci_numbers.lox lacks a high degree of creative expression and many people have created it; therefore placing it in the public domain.
    • I have included a syntax highlighting grammar: https://github.com/danman113/lox-language
    • I have added a color
      • Hex value: #f1ead7
      • Rationale: This color was chosen because it is the color used in the background of the cover on the book Crafting Interpreters. That book is where this language originated.
    • I have updated the heuristics to distinguish my language from others using the same extension.
  • I am fixing a misclassified language

    • I have included a new sample for the misclassified language:
      • Sample source(s):
        • [URL to each sample source, if applicable]
      • Sample license(s):
    • I have included a change to the heuristics to distinguish my language from others using the same extension.
  • I am changing the source of a syntax highlighting grammar

    • Old: [URL to grammar repo]
    • New: [URL to grammar repo]
  • I am updating a grammar submodule

  • I am adding new or changing current functionality

    • I have added or updated the tests for the new or changed functionality.
  • I am changing the color associated with a language

    • I have obtained agreement from the wider language community on this color change.
      • [URL to public discussion]
      • [Optional: URL to official branding guidelines for the language]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant