{"id":20765962,"url":"https://github.com/nvmd/spbau-mathvm","last_synced_at":"2026-04-21T15:31:24.189Z","repository":{"id":8458080,"uuid":"10054228","full_name":"nvmd/spbau-mathvm","owner":"nvmd","description":"mathvm svn repository mirror","archived":false,"fork":false,"pushed_at":"2013-05-14T12:13:07.000Z","size":3224,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-06T10:32:15.635Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://code.google.com/p/mathvm/","language":"C++","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"openshift/ruby-ex","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nvmd.png","metadata":{"files":{"readme":"README.txt","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":"2013-05-14T12:06:49.000Z","updated_at":"2013-09-29T15:41:20.000Z","dependencies_parsed_at":"2022-09-18T22:54:01.234Z","dependency_job_id":null,"html_url":"https://github.com/nvmd/spbau-mathvm","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/nvmd%2Fspbau-mathvm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nvmd%2Fspbau-mathvm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nvmd%2Fspbau-mathvm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nvmd%2Fspbau-mathvm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nvmd","download_url":"https://codeload.github.com/nvmd/spbau-mathvm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243093881,"owners_count":20235456,"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-11-17T11:20:14.449Z","updated_at":"2025-12-07T15:02:21.443Z","avatar_url":"https://github.com/nvmd.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"                Introduction.\n\n  This folder contains partial source code for a simple VM, with few intentionally \nmissed pieces. This VM implements simple language (MVM language) with basic\ncomputational functionality and flow control.\n\n                MVM language.\n\n   Language has simple C-style syntax and is intentionally rather\n basic. Language has 3 types: \n     - 64-bit integer type, called 'int'\n     - ANSI C compatible double type, called 'double'\n     - immutable strings, called 'string' \n \n  Every variable is scoped, scope is marked with curly braces ({ and }).\n Variable has to be declared before first use, otherwise translation\n error will happen.\n\n  Values in variable could be modified with traditional C-style\n expressions, like x= 2+y*3; with traditional C-style operators\n precedence, i.e. aforementioned expression is evaluated as \n  x= (2+(y*3));\n\n   Variables in topmost scope could be bound to Var class\n  instances, to allow interoperability between MVM programs and C++. \n\n\n Literals can be:\n   - integer, such as 42 or 123456789012345\n   - double, such as 42.0 or 1e-18\n   - string, such as '42' or 'Hello \\'World\\'\\n'\n\n Flow control is as following:\n    - 'for' loop, with semantics:\n         for (i in -10..x) { print('i=', i,    '\\n'); }\n    - 'if' conditions, such as\n         if (x == 8 \u0026\u0026 y \u003c= 2) { \n             print('c1\\n'); \n         } else {\n             print('c2\\n'); \n         }\n\n               Implementation.\n \n   We provide generic source -\u003e AST (abstract syntax tree)\n translator, so that implementors can focus on VM-specific issues.\nIt means we give scanner and top-down parser, generating tree\nof AST nodes, representing program structure.\nIts up to implementors to provide remaining pieces for fully\nfunctional VM.\n\n                Tests.\n\n  Directory 'tests' contains set of tests on basic language features,\n  along with test driver 'run.py'. Generally, for every MVM program \nwe have an .expect file, which contains expected result of execution\nfor given MVM program. By default, 'run.py' will run all tests it\nknows about.\n \n  \n                Source tree layout.\n\n  Folder 'include' contains generic declarations of language constructs\n(as AST nodes), set of bytecodes with description, and certain basic\ninterfaces.\n  \n  Folder 'tests' contains MVM tests. Feel free to implement your own tests.\n\n  Folder 'vm' contain source code for the VM.\n\n                Building.\n\n  Build shall be pretty straightforward, just type 'make' in command\n line (known to work with MacOS and Linux). Use 'make OPT=1' for an optimized build.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnvmd%2Fspbau-mathvm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnvmd%2Fspbau-mathvm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnvmd%2Fspbau-mathvm/lists"}