{"id":15031738,"url":"https://github.com/xnj-lang/xnj","last_synced_at":"2026-03-16T22:33:23.623Z","repository":{"id":210284841,"uuid":"726196708","full_name":"xnj-lang/xnj","owner":"xnj-lang","description":"XNJ Compiler","archived":false,"fork":false,"pushed_at":"2023-12-05T18:10:49.000Z","size":36,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-19T22:51:05.688Z","etag":null,"topics":["compiler","lang","language","programming","programming-language","rust","rust-lang","rust-language"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xnj-lang.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-12-01T18:38:14.000Z","updated_at":"2023-12-03T22:54:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"b35fca79-9790-4db9-a6a9-2557a69fe839","html_url":"https://github.com/xnj-lang/xnj","commit_stats":null,"previous_names":["xinajjj/xnj-compiler"],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xnj-lang%2Fxnj","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xnj-lang%2Fxnj/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xnj-lang%2Fxnj/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xnj-lang%2Fxnj/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xnj-lang","download_url":"https://codeload.github.com/xnj-lang/xnj/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243351839,"owners_count":20276908,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["compiler","lang","language","programming","programming-language","rust","rust-lang","rust-language"],"created_at":"2024-09-24T20:16:26.737Z","updated_at":"2025-12-29T22:05:30.942Z","avatar_url":"https://github.com/xnj-lang.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# XNJ Compiler\n\nXNJ Compiler is a simple compiler written in Rust that compiles files with the `.xnj` extension.\n\n## Getting Started\n\nTo use the compiler, follow these steps:\n\n1. **Download the Executable:**\n   - Download the executable file from the [Releases](https://github.com/xinajjj/xnj-compiler/releases) page.\n\n2. **Set Up Environment:**\n   - Open the command line.\n   - Navigate to the directory containing the executable or add the compiler to the system's PATH.\n\n3. **Compile `.xnj` File:**\n   - Navigate to the directory containing your `main.xnj` file.\n   - Run the compiler using the command:\n     ```sh\n     xnjc main.xnj\n     ```\n\n## Example Code\n\n`main.xnj`:\n```rust\nmain[Status]\n    crt-int-var_name: 10; // Creating a variable \"var_name\" of int type, initialized with the value 10\n    op(\"{var_name}\"); // Output the variable \"var_name\"\n    var_name++; // Increment \"var_name\" by 1\n    opln(\"{var_name}\"); // Output the updated value of \"var_name\" on a new line\n    Ok() // Keyword to end the program\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxnj-lang%2Fxnj","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxnj-lang%2Fxnj","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxnj-lang%2Fxnj/lists"}