{"id":16574409,"url":"https://github.com/c71n93/language","last_synced_at":"2025-07-11T15:43:23.901Z","repository":{"id":152075692,"uuid":"447319384","full_name":"c71n93/Language","owner":"c71n93","description":"Compiler for primitive programming language","archived":false,"fork":false,"pushed_at":"2022-03-11T12:35:01.000Z","size":1108,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-05T16:53:51.501Z","etag":null,"topics":["compiler"],"latest_commit_sha":null,"homepage":"","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/c71n93.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":"2022-01-12T17:59:55.000Z","updated_at":"2023-01-26T21:12:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"a866bd91-7160-4644-946b-b9f32175ab7f","html_url":"https://github.com/c71n93/Language","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/c71n93/Language","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c71n93%2FLanguage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c71n93%2FLanguage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c71n93%2FLanguage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c71n93%2FLanguage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/c71n93","download_url":"https://codeload.github.com/c71n93/Language/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c71n93%2FLanguage/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264842822,"owners_count":23672068,"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"],"created_at":"2024-10-11T21:44:29.909Z","updated_at":"2025-07-11T15:43:23.874Z","avatar_url":"https://github.com/c71n93.png","language":"C++","readme":"# С(ringe)\nThe *С(ringe)* language is a simplified copy of the *C* language. \n\nThe source code is compiled via AST into assembly code, that can be execute by [Processor](https://github.com/RomanKorostinskiy/Processor).\n\n\n## С(ringe) grammar:\nI used [EBNF](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form) syntax to describe grammar of my language.\n\n**Grammar for recursive descent:**\n```\nG ::= St+, '\\0' ;\n\nSt ::= [Cond | As | E | FuncDef], ';' ;\n\nBlk ::= '{', St+, '}' ;\n\nCond ::= 'if', '(', E, ')', Blk, ['else', '(', ')', Blk] ;\n\nAs ::= Vas, '=', E ;\n\nFuncDef ::= 'def', '!', Func, Blk ;\n\nFunc ::= Name, '(', ')' ;\n\nStdFunc ::= ('print' | 'sqrt' | 'scan'), '(', E, ')' ;\n\nE ::= T ((+ | -), T)* ;\n\nT ::= P ((* | /), P)* ;\n\nP ::= ('(', E, ')') | N | Var | StdFunc | Func ;\n\nN ::= FloatingPointNumber ;\n\nVar ::= Name ;\n```\n\n**Grammar for tokenizer:**\n```\nName   ::= Letter, (Letter | Digit | \"_\")* ;\n\nLetter ::= ('a'-'z') | ('A'-'Z') ;\n```\n```\nFloatingPointNumber ::= ['-'], ('0' | NaturalNumber), '.', NaturalNumber ;\n\nNaturalNumber       ::= DigitExcludingZero, Digit* ;\n\nDigit               ::= '0' | DigitExcludingZero ;\n\nDigitExcludingZero  ::= ('1'-'9');\n```\n\n## How to use Language:\n**Input** - is a program in С(ringe) language. You should pass a path to source code in the first argument of programm.\n\n**Output** - is a assembly code. You should pass a path to place where you want to see your assembly code in the second argument of programm.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fc71n93%2Flanguage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fc71n93%2Flanguage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fc71n93%2Flanguage/lists"}