{"id":22141361,"url":"https://github.com/jbrosdevelopment/norma","last_synced_at":"2026-02-17T02:33:13.020Z","repository":{"id":232300397,"uuid":"783982544","full_name":"JBrosDevelopment/Norma","owner":"JBrosDevelopment","description":"Norma is a small custom programming language made as an example for my blog.","archived":false,"fork":false,"pushed_at":"2025-01-26T03:56:52.000Z","size":31836,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-21T19:38:16.739Z","etag":null,"topics":["custom","language","norma","programming","programming-language"],"latest_commit_sha":null,"homepage":"https://jbrosdev.hashnode.dev/guide-to-building-your-own-programming-language-with-c","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JBrosDevelopment.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-04-09T00:35:54.000Z","updated_at":"2025-01-26T03:56:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"ef38db7c-2fc3-4537-a68e-33b4eb6c2ba4","html_url":"https://github.com/JBrosDevelopment/Norma","commit_stats":null,"previous_names":["jbrosdevelopment/clang","jbrosdevelopment/norma"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/JBrosDevelopment/Norma","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JBrosDevelopment%2FNorma","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JBrosDevelopment%2FNorma/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JBrosDevelopment%2FNorma/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JBrosDevelopment%2FNorma/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JBrosDevelopment","download_url":"https://codeload.github.com/JBrosDevelopment/Norma/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JBrosDevelopment%2FNorma/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29531020,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-17T00:57:22.232Z","status":"online","status_checked_at":"2026-02-17T02:00:08.105Z","response_time":100,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["custom","language","norma","programming","programming-language"],"created_at":"2024-12-01T21:12:46.501Z","updated_at":"2026-02-17T02:33:13.000Z","avatar_url":"https://github.com/JBrosDevelopment.png","language":"C#","readme":"# Norma Programming Language\n\n\u003e \\*\\***Find Article about making it [HashNode](https://jbrosdev.hashnode.dev/guide-to-building-your-own-programming-language-with-c)**\\*\\*\n\nNorma is a programming language built in C# made to be extremely simple. It's syntax is similar to Python and JavaScript, but has my own custom spin on it. \n\nHere is the [Nuget Package](https://www.nuget.org/packages/Norma/) if you want to add it to your C# project\n\u003e `dotnet add package Norma`\n\n\u003cp align=\"center\"\u003e\n  \u003ca\u003e\n    \u003cimg src=\"https://raw.githubusercontent.com/JBrosDevelopment/Norma/main/images/Norma%20(526px).png\" alt=\"icon\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\nNorma is a very simple language. To define a variable, use:\n```js\nvar x = 10\n```\nTo access the variable put it in between `$`\n```js\nvar y = $x$\n```\nTo create a pointer to that variable, use the `point` keyword. \n```js\nvar z = point: $x$\n```\nTo call a function, don't use parenthesis.\n```js\nprint \"Hello World\"\n```\nStrings have automatic interpolation with variables using the `$` syntax.\n```js\nprint \"X is equal to $x$ and y is equal to $y$\"\n```\nTo define a function, use `def`\n```js\ndef add: left, right {\n    return ($left$ + $right$)\n}\n\nadd 5, 6\n```\nAny equations must be inside `( )`.\n```js\nvar x = ($y$ * $z$)\n```\nTo manipulate a variable, use `+` instead of `+=` where `+` can be any operator\n```js\nvar x = 10\nx + 5\nx - 4\nx * 3\nx / 2\nx = 1\n\nprint $x$\n```\nComments are very simple\n```js\n// Line Comment\n/*\n    Block Comment\n*/\n```\nArrays are also allowed in this language\n```js\nvar y = [0, 1, 2]\n```\nThey are typeless and can hold anything including pointers\n```js\ny = [0, \"yes\", [\"no\", $z$], point: $x$]\n```\nStructs are the next main feature\n```js\nstruct Vector { X, Y, Z }\n\nvar vec = Vector: 100, 5.23, 99\n```\nThey can be accessed and modified easily,\n```js\nvec.X = 150\nvec.Y = $vec.X$\n```\nThe values are also typeless and can be anything\n```js\nvec.X = \"Hello World\"\nvec.Y = point: $z$\nvec.Z = [1, 2, 3]\n```\nStatements are straightforward as well\n```py\nif x \u003e 55 { \n    print \"X is big\"\n}\nelif x \u003c 0 {\n    print \"X is negative\"\n}\nelse { \n    print \"x is small\"\n}\n```\nThere are loops as well\n```js\nwhile true {\n    print \"yes\"\n}\nfor i in 150 {\n    print $i$\n}\n```\nFor loops can also use arrays \n```js\nfor value in $array$ {\n    print $value$\n}\n```\nThere are many built in functions as well ([Test file](FunctionTesting.norm)):\n- `print \"text\"`\n- `input`\n- `clear`\n- `exit`\n- `substring \"text\", $start$, $len$`\n- `indexOf \"text\", \"e\"`\n- `toLower \"Text\"`\n- `toUpper \"text\"`\n- `trim \" text \"`\n- `revere \"string or array\"`\n- `length [\"string\", \"or\", \"array\"]`\n- `append [0, 1], 5`\n- `remove $index$`\n- `insert $array$, $index$, $value$`\n- `slice [99, 98, 97, 96, 95], $start$, $len$ `\n- `concat $array$, [0, 1, 2, 3]`\n- `sort [9, 5, 7, 2, 0]`\n- `runCode $code$`\n- `readFile \"path/to/file.txt\"`\n- `writeFile \"path/to/file.txt\", \"text\"`\n- `createFile \"path/to/file.txt\"`\n- `deleteFile \"path/to/file.txt\"`","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjbrosdevelopment%2Fnorma","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjbrosdevelopment%2Fnorma","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjbrosdevelopment%2Fnorma/lists"}