{"id":18246239,"url":"https://github.com/daniel-boll/pile","last_synced_at":"2025-04-08T19:25:55.034Z","repository":{"id":92162530,"uuid":"535180711","full_name":"Daniel-Boll/pile","owner":"Daniel-Boll","description":"The oficial repo for the pile lang","archived":false,"fork":false,"pushed_at":"2023-01-30T22:09:53.000Z","size":131,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-14T15:15:27.659Z","etag":null,"topics":["compiler","compiler-principles","concatenative-programming-language","lexer-analyzer","programming-language","stack-based"],"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/Daniel-Boll.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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-09-11T03:30:51.000Z","updated_at":"2023-02-18T03:01:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"3bcbf161-299c-4b51-98c7-3cf82292fae5","html_url":"https://github.com/Daniel-Boll/pile","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Daniel-Boll%2Fpile","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Daniel-Boll%2Fpile/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Daniel-Boll%2Fpile/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Daniel-Boll%2Fpile/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Daniel-Boll","download_url":"https://codeload.github.com/Daniel-Boll/pile/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247910447,"owners_count":21016695,"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","compiler-principles","concatenative-programming-language","lexer-analyzer","programming-language","stack-based"],"created_at":"2024-11-05T09:25:03.190Z","updated_at":"2025-04-08T19:25:55.001Z","avatar_url":"https://github.com/Daniel-Boll.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# \u003ch1 align=\"center\"\u003ePile Lang\u003c/h1\u003e\n\n\u003e Pile is a Concatenative Stack-Oriented Programming Language. Pile's name come from the stack concept of _piling_ things.\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://user-images.githubusercontent.com/43689101/190835774-636bfea5-c2c9-49a3-962a-b806c244dff0.png\" width=\"550\"\u003e\n\u003c/p\u003e\n\n## Lexer\n\n- [X] BNF\n- [X] 3 tipos de datos:\n  - Stack: `int`, `float`, `ptr`\n  - Memory: `int`, `string`, `ptr`\n- [X] Operadores:\n  - [X] Aritméticos: `+`, `-`, `*`, `/`, `%`\n  - [X] Lógicos/relacional: `\u0026\u0026`, `||`, `!`, `==`, `!=`, `\u003e`, `\u003c`, `\u003e=`, `\u003c=`\n  \u003c!-- - [ ] Bitwise: `\u0026`, `|`, `^`, `~`, `\u003c\u003c`, `\u003e\u003e` --\u003e\n- [X] Regras de identificadores\n- [ ] Palavras reservadas\n  - [ ] mod, dump, dup, dup2, drop, swap, over, mem, st8, ld8, st32, ld32, sts, lds, syscall1, syscall1!, syscall3, syscall3!, if, else, while, for, do, macro, end, include, i32, i8, string\n- [X] IO\n  - [X] `write`\n    - [ ] `dump` dump the stack\n  - [X] `read`\n- [X] Implementação e descrição do autômato\n\n## Implementação\n\n## Installation\n\n## TODO\n\n- [ ] Documentation\n- [ ] Refactor components to separatedly do\n  - [X] Lexical Analysis\n  - [ ] Semantic Analysis\n  - [ ] Syntactic Analysis\n- [ ] CI/CD test automation\n- [ ] Benchmark comparison\n\n## Troubleshooting\n\n\\begin{bnfgrammar}\n\u003cprogram\u003e ::= \u003cstatement\u003e\n;;\n;;\n\u003cstatement\u003e ::= \u003cif-statement\u003e\n | \u003cwhile-statement\u003e\n | \u003crange-statement\u003e\n | \u003cnumeric-literal\u003e\n | \\textbf{string\\_literal}\n | \\textbf{id}\n | \u003cassign-to-identifier\u003e\n | \u003ccast\u003e\n | \u003cvariable\\_declaration\u003e\n | \\textbf{arithmetic\\_op}\n | \u003cstatement\u003e \u003cstatement\u003e\n;;\n;;\n\u003ccast\u003e ::= \\textbf{\\char\"003A\\char\"003A} \u003ctype\u003e\n;;\n\u003ctype\u003e ::= \\textbf{i32} || \\textbf{f32} || \\textbf{f64} || \\textbf{bool}\n;;\n\u003cvariable\\_declaration\u003e ::= \u003ctype\u003e \\textbf{id}\n;;\n\u003cassign-to-identifier\u003e ::= \\textbf{@} \\textbf{id}\n;;\n\u003cnumeric-literal\u003e ::= \\textbf{integer\\_literal} || \\textbf{float\\_literal} || \\textbf{bool}\n;;\n;;\n\u003cstack-ops\u003e ::= \\textbf{swap} || \\textbf{dup} || \\textbf{drop} || \\textbf{over} || \\textbf{dup2} || \\textbf{dump}\n;;\n\u003cpop-stack\u003e ::= (\u003cinteger-literal\u003e || \u003cstack-ops\u003e)\n;;\n;;\n\u003cif-statement\u003e ::= \u003cif-body\u003e || \u003cif-else-body\u003e\n;;\n\u003cif-body\u003e ::= \\textbf{if} \u003cstatement\u003e \\textbf{end}\n;;\n\u003cif-else-body\u003e ::= \\textbf{if} \u003cstatement\u003e \\textbf{else} \u003cstatement\u003e \\textbf{end}\n;;\n;;\n\u003cwhile-logic\u003e ::= \\textbf{comparison_op} || \u003cnumeric-literal\u003e || \u003cstack-ops\u003e\n;;\n\u003cwhile-statement\u003e ::= \\textbf{while} \u003cwhile-logic\u003e+ \\textbf{do} \u003cstatement\u003e \\textbf{end}\n;;\n\u003crange-statement\u003e ::= \\textbf{range} \u003cid\u003e? \\textbf{do} \u003cstatement\u003e \\textbf{end}\n;;\n\\end{bnfgrammar}\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaniel-boll%2Fpile","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaniel-boll%2Fpile","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaniel-boll%2Fpile/lists"}