{"id":18773920,"url":"https://github.com/ejunjsh/jcc","last_synced_at":"2025-12-14T02:30:18.305Z","repository":{"id":61147566,"uuid":"332157861","full_name":"ejunjsh/jcc","owner":"ejunjsh","description":"a toy for java compiler and interpreter","archived":false,"fork":false,"pushed_at":"2021-02-11T00:45:08.000Z","size":82,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-29T08:41:59.295Z","etag":null,"topics":["interpreter","java-compiler"],"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/ejunjsh.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}},"created_at":"2021-01-23T07:59:45.000Z","updated_at":"2023-02-04T08:16:09.000Z","dependencies_parsed_at":"2022-10-11T17:58:22.532Z","dependency_job_id":null,"html_url":"https://github.com/ejunjsh/jcc","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/ejunjsh%2Fjcc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ejunjsh%2Fjcc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ejunjsh%2Fjcc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ejunjsh%2Fjcc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ejunjsh","download_url":"https://codeload.github.com/ejunjsh/jcc/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239680985,"owners_count":19679509,"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":["interpreter","java-compiler"],"created_at":"2024-11-07T19:36:18.341Z","updated_at":"2025-12-14T02:30:18.253Z","avatar_url":"https://github.com/ejunjsh.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jcc\n\na java compiler and interpreter\n\n## compile jcc\n\n    mvn compile\n\n## compile RecursiveSum.java\n\n    mvn exec:java -Dexec.mainClass=com.sky.jcc.compiler.CodeGenerationMain -Dexec.args=RecursiveSum.java\n\noutput:\n\n    The following program does: \n\t -\u003eSyntax Tree build \n\t -\u003eSymbol Table construction \n\t -\u003eType checking \n\t -\u003eCode Generation \n\n    Processing file: RecursiveSum.java\n    \n        Symbol Table:\n    \n    +-------------------------------------------------------------------------------------------+\n    ID                           RECORD                            SCOPE\n    +-------------------------------------------------------------------------------------------+\n    RecursiveSum             RecursiveSum - class                    prog [ program ]\n    Test                     Test - class                    prog [ program ]\n    main                    main - public              RecursiveSum [ class ]\n    sum                        sum - int                      Test [ class ]\n    num                        num - int                      sum [ method ]\n    sum                        sum - int                      sum [ method ]\n    +-------------------------------------------------------------------------------------------+\n    \n    Generated code\n    ==============\n    \n    Method: RecursiveSum.main\n    0  ICONST            10\n    1  INVOKEVIRTUAL     Test.sum\n    2  PRINT             \n    3  STOP\n    \n    Method: Test.sum\n    #0 = num  #1 = sum\n    0  ISTORE            #0\n    1  ILOAD             #0\n    2  ICONST            2  \n    3  ILT               \n    4  IF_FALSE          8  \n    5  ICONST            1  \n    6  ISTORE            #1\n    7  GOTO              15\n    8  ILOAD             #0\n    9  ILOAD             #0\n    10 ICONST            1  \n    11 ISUB              \n    12 INVOKEVIRTUAL     Test.sum\n    13 IADD              \n    14 ISTORE            #1\n    15 ILOAD             #1\n    16 IRETURN\n    \n    Program compiled into: RecursiveSum.jcc\n\n## interprete run RecursiveSum.jcc\n\n    mvn exec:java -Dexec.mainClass=com.sky.jcc.interpreter.JccInterpreter -Dexec.args=RecursiveSum.jcc\n\noutput:\n\n    The following program does: \n\t -\u003eCode interpretation \n\n    Interpreting file: RecursiveSum.jcc\n\n    55\n    \n:) enjoy\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fejunjsh%2Fjcc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fejunjsh%2Fjcc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fejunjsh%2Fjcc/lists"}