{"id":17238709,"url":"https://github.com/othonalberto/ot-lang","last_synced_at":"2025-03-26T02:31:53.352Z","repository":{"id":85695051,"uuid":"165446356","full_name":"othonalberto/ot-lang","owner":"othonalberto","description":"Projeto final da disciplina de Compiladores - UTFPR PG. Desenvolvido com ANTRL4","archived":false,"fork":false,"pushed_at":"2019-01-12T23:34:59.000Z","size":56,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-30T23:42:16.602Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","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/othonalberto.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":"2019-01-12T23:26:12.000Z","updated_at":"2019-01-24T18:17:55.000Z","dependencies_parsed_at":"2023-05-21T06:15:46.909Z","dependency_job_id":null,"html_url":"https://github.com/othonalberto/ot-lang","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/othonalberto%2Fot-lang","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/othonalberto%2Fot-lang/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/othonalberto%2Fot-lang/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/othonalberto%2Fot-lang/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/othonalberto","download_url":"https://codeload.github.com/othonalberto/ot-lang/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245576532,"owners_count":20638126,"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":[],"created_at":"2024-10-15T05:46:28.281Z","updated_at":"2025-03-26T02:31:53.332Z","avatar_url":"https://github.com/othonalberto.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OT Lang\n\nDisciplina: Compiladores\n\nAluno: Othon Alberto da Silva Briganó\n\nProfessor: Clayton Kossoski\n\n---\n\n*ESTE É UM PROJETO DESENVOLVIDO PARA UMA DISCIPLINA. AINDA CONTÉM MUITOS PONTOS A MELHORAR*.\n\n\nLinguagem simples para aprendizado de Compiladores. Características:\n\n* Não tipada;\n* Apenas um loop;\n* if-else;\n* Internamente, lida apenas com números de ponto-flutuante. Porém, não há a necessidade de declarar um número inteiro com casa decimal;\n* Compila para Python3.\n\n## Declaração e atribuição de variável\n\n\tvar x;\n\tx = 10;\n\t\n\tvar y = 5;\n\n\t\n## For loop\n\t\n\ti loop 1 10 2\n\t\n* i: variável indexadora;\n* loop: palavra reservada que mostra para a linguagem que isso é um loop;\n* 1: valor inicial da variável indexadora;\n* 10: valor final da variável indexadora;\n* 2: \"salto\" da varíavel indexadora.\n\n\n## If-else\n\nIf-else igual linguagem C.\n\n\tif (x == 2) {\n\t\t...\n\t} else {\n\t\t...\n\t}\n\t\n## Print\n\n\tvar x;\n\tx = 5;\n\t\n\tprint x;\n\t\n## Comparações\n\nAs seguintes expressões são válidas:\n\t\n* x == y \n\t\n* x != y \n\t\t\n* x and y ( equivalente, em C, a x \u0026\u0026 y ) \n\t\t\n* x or y (equivalemente, em C, a x || y)\n\t\t\n* x \u003e y \n\t\n* x \u003c y \n\t\n* x \u003e= y \n\t\n* x \u003c= y\n\nPorém, apenas uma comparação por if é válida. Por exemplo, `` if ( (x \u003e y) and (x \u003e 5) )`` ainda não é suportado.\n\nObrigatoriamente, o lado esquerdo da comparação é uma variável.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fothonalberto%2Fot-lang","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fothonalberto%2Fot-lang","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fothonalberto%2Fot-lang/lists"}