{"id":20048460,"url":"https://github.com/aggstam/flex-bison-jvm-language","last_synced_at":"2026-03-06T11:03:58.765Z","repository":{"id":155101736,"uuid":"592807751","full_name":"aggstam/flex-bison-jvm-language","owner":"aggstam","description":"Simple Flex and Bison programs to validate provided SimpleLanguage file syntax, perform semantic analysis and compile to JVM asembly(jasmin) for execution.","archived":false,"fork":false,"pushed_at":"2023-05-16T15:17:47.000Z","size":154,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-02T08:24:15.732Z","etag":null,"topics":["compiler","flex-bison","jvm-bytecode","language-processing"],"latest_commit_sha":null,"homepage":"","language":"Yacc","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aggstam.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2023-01-24T15:26:36.000Z","updated_at":"2023-01-24T15:47:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"eec12c38-4569-4e60-a1e9-e2f37c5e3341","html_url":"https://github.com/aggstam/flex-bison-jvm-language","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/aggstam/flex-bison-jvm-language","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aggstam%2Fflex-bison-jvm-language","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aggstam%2Fflex-bison-jvm-language/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aggstam%2Fflex-bison-jvm-language/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aggstam%2Fflex-bison-jvm-language/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aggstam","download_url":"https://codeload.github.com/aggstam/flex-bison-jvm-language/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aggstam%2Fflex-bison-jvm-language/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30173373,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T07:56:45.623Z","status":"ssl_error","status_checked_at":"2026-03-06T07:55:55.621Z","response_time":250,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["compiler","flex-bison","jvm-bytecode","language-processing"],"created_at":"2024-11-13T11:44:12.475Z","updated_at":"2026-03-06T11:03:53.749Z","avatar_url":"https://github.com/aggstam.png","language":"Yacc","funding_links":[],"categories":[],"sub_categories":[],"readme":"# flex-bison-jvm-language\n\nSimple Flex and Bison programs producing the corresponding C code to validate\nprovided SimpleLanguage (.sl) file syntax, perform semantic analysis and compile to\nJVM asembly(jasmin), which can then be executed.\n\u003cbr\u003e\nSimpleLanguage syntax:\n```\nstart {program name}\n{command0}\n    .\n    .\n    .\n{commandN}\nend\n```\n\nTwo types of commands exist:\n1. Assignment(affix format): ({var} (expression))\n2. Print: (print {var or (expression)})\n\nAssigment command example:\n```\n(x (3 4 +))\n```\n\nPrint command examples:\n```\n(print (3 4 +))\n(print x)\n```\n\nNotes:\n- Each command is enclosed in parentheses\n- Type casting and coersion are supported\n- Variables are not declared(type is deducted by first assignment)\n\nCompilation and tests execution is streamline via a Makefile.\n\u003cbr\u003e\nSix valid and one invalid test SimpleLanguage files have been provided to play with.\n\n## Usage\n```\n% make\n```\nMakefile can be configured to use a different test case set and/or files.\n\n## Execution example\n```\n❯ make test\nflex -s -o lexer.c lexer.l\nbison -v -o parser.c parser.y\ngcc -Iexternal parser.c -o compiler -lfl\nErrors found 0.\nGenerated: test_0.class\n7\nErrors found 0.\nGenerated: test_1.class\n49\n49.0\nErrors found 0.\nGenerated: test_2.class\n7.0\n11.0\nErrors found 0.\nGenerated: test_3.class\n7.0\nErrors found 0.\nGenerated: test_4.class\n7\nErrors found 0.\nGenerated: test_5.class\n7\nErrors found 0.\nGenerated: test_6.class\n7.0\n3\nERROR: syntax error, unexpected ')'. on line 2.\nWarning: value is already int, in line 4.\nVariable z NOT initialized, in line 5. ERROR: Variable fault. on line 5.\nInteger var y. ERROR: Narrowing Conversion (float to int). on line 6.\nWarning: value is already real, in line 8.\nVariable x NOT initialized, in line 9. ERROR: Variable fault. on line 9.\nErrors found 4.\nNo Code Generated.\nmake: [Makefile:40: test] Error 1 (ignored)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faggstam%2Fflex-bison-jvm-language","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faggstam%2Fflex-bison-jvm-language","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faggstam%2Fflex-bison-jvm-language/lists"}