{"id":16909626,"url":"https://github.com/yjdoc2/equation-parser-interpreter","last_synced_at":"2026-05-11T16:32:34.870Z","repository":{"id":100666572,"uuid":"224843175","full_name":"YJDoc2/Equation-Parser-Interpreter","owner":"YJDoc2","description":"An interpreter designed in C++ for the equation parser project.This can read the commands from a file and write output to another file.","archived":false,"fork":false,"pushed_at":"2019-12-04T13:43:36.000Z","size":1225,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-20T17:52:38.613Z","etag":null,"topics":["c","cpp17","interpreter","parser"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/YJDoc2.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":"2019-11-29T11:41:45.000Z","updated_at":"2020-09-28T08:21:16.000Z","dependencies_parsed_at":"2023-05-16T15:45:36.569Z","dependency_job_id":null,"html_url":"https://github.com/YJDoc2/Equation-Parser-Interpreter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/YJDoc2/Equation-Parser-Interpreter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YJDoc2%2FEquation-Parser-Interpreter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YJDoc2%2FEquation-Parser-Interpreter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YJDoc2%2FEquation-Parser-Interpreter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YJDoc2%2FEquation-Parser-Interpreter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/YJDoc2","download_url":"https://codeload.github.com/YJDoc2/Equation-Parser-Interpreter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YJDoc2%2FEquation-Parser-Interpreter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32903332,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-10T13:40:02.631Z","status":"online","status_checked_at":"2026-05-11T02:00:05.975Z","response_time":120,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["c","cpp17","interpreter","parser"],"created_at":"2024-10-13T18:56:40.295Z","updated_at":"2026-05-11T16:32:34.850Z","avatar_url":"https://github.com/YJDoc2.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Equation-Parser-Interpreter\n\nThis is an file based interpriter for \u003ca href = \"https://github.com/YJDoc2/EquationParser\"\u003eEquation Parser\u003c/a\u003e.\n\n## Basic Usage\n\n#### Compiling\n\ngenerate the runfile using makefile and make command (on linux), requires gcc and g++, with c++ std 14 support.\n\nFor manual compiling :\n\n\u003col\u003e\n\u003cli\u003egcc -c cparser.c -lm ; which will give cparser.o \u003c/li\u003e\n\u003cli\u003eg++ -c main.cpp; which will give main.o \u003c/li\u003e\n\u003cli\u003eg++ -o eqparse cparser.o main.o; which will give eqparse\u003c/li\u003e\n\u003c/ol\u003e\n\n#### running\n\neqparse \u0026lt;script_file\u0026gt; [output_file]  (Without Brackets)\n\nscript file is any valid text file written with valid syntax.  \noutput file is optional.\nIf not given output will be given on standerd output - either console or redirected file if output redirection is done.\nIf given output will \u003cb\u003e Overwrite \u003c/b\u003e the file.\n\n## Syntax :\n\n\u003cul\u003e\n\u003cli\u003eAll Non-comment Lines should be less than 150 characters long in total.\u003c/li\u003e\n\u003cli\u003eLines starting with ' // ' and empty lines will be ignored.\u003c/li\u003e\n\u003cli\u003eContents of line starting with ' # ' will be copied as it is (except #) in the output.\u003c/li\u003e\n\u003cli\u003eAll inbuilt commands, equations and variable assignments must be given on a line by themselves,i.e. Comments cannot start mid-way in a line.\u003c/li\u003e\n\u003cli\u003eAllowed inbuild commands Are : \u003cb\u003eshowvars , vardump , varload , varclear.\u003c/b\u003e\u003c/li\u003e\n\u003cli\u003eto solve an equation, or for variable assignment, give the expression on the line by itself.\u003c/li\u003e\n\u003cli\u003eAssignment of variable can be done as :\n\u003col\u003e\n\u003cli\u003e$0 to $9 = expr ---for inbuilt variables\u003c/li\u003e\n\u003cli\u003evarname = expr ---for custom named variables.\u003c/li\u003e\n\u003c/ol\u003e\n\u003c/li\u003e\n\u003cli\u003eTo find roots of a polynomial equation , use polysolve \u0026lt;space\u0026gt; expr\u003c/li\u003e\n\u003cli\u003eTo solve system of linear equation with less than 9 variables:\n\u003cul\u003e\n\u003cli\u003eFirst give linsolve \u0026lt;space\u0026gt; \u0026lt;number of variables (n)\u0026gt;\u003c/li\u003e\n\u003cli\u003eThen give the linear equations using variables x0 to x(n-1) on next consecutive lines.\u003c/li\u003e\n\u003c/ul\u003e\n\u003c/li\u003e\n\u003c/ul\u003e\n\nAlso look at syntax of \u003ca href =\"https://github.com/YJDoc2/EquationParser/blob/master/Mark%20II/README.md\"\u003e Equation Parser Mk II \u003c/a\u003e for general syntax.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyjdoc2%2Fequation-parser-interpreter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyjdoc2%2Fequation-parser-interpreter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyjdoc2%2Fequation-parser-interpreter/lists"}