{"id":17245177,"url":"https://github.com/axtens/rst","last_synced_at":"2026-03-19T00:15:24.577Z","repository":{"id":116210378,"uuid":"200334469","full_name":"axtens/rst","owner":"axtens","description":"An xBase DBF resturcturer written in Fitted Software Tools Modula-2, generating Clipper 5.2 code","archived":false,"fork":false,"pushed_at":"2022-08-21T13:42:14.000Z","size":26,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-31T06:41:55.145Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Modula-2","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/axtens.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-08-03T05:10:53.000Z","updated_at":"2022-08-21T13:42:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"3ae249b0-2d05-4952-99e8-b0dfa1c9730f","html_url":"https://github.com/axtens/rst","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/axtens%2Frst","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axtens%2Frst/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axtens%2Frst/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axtens%2Frst/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/axtens","download_url":"https://codeload.github.com/axtens/rst/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245591618,"owners_count":20640692,"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-15T06:28:48.520Z","updated_at":"2026-01-05T18:05:25.276Z","avatar_url":"https://github.com/axtens.png","language":"Modula-2","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rst\nAn xBase DBF resturcturer written in Fitted Software Tools Modula-2, generating Clipper 5.2 code\n\nI was working for a construction company. They had many DBF files that they were wanting to restructure. RST was one of the ways I thought of to automate the procedure.\n\nRST uses RESTRU.EXE (written in Modula-2) to parse a job description in an file with an .RST extension. RESTRU.EXE, from the description, generates a Clipper 5.2 PRG file for subsequent compilation and execution.\n\nFor example, DEFAULT.RST\n```\nres thing\nchg fldname name fld type c len 20\ngo\ncode ? \"hello world\"\n```\nRESTRU turns that into\n```\nUSE thing ALIAS RST NEW\naFileArray := dbstruct()\nn := ASCAN( aFileArray, { |aVal| aVal[1] == [FLDNAME] } )\nIF n \u003c\u003e 0\n aFileArray[n][1] := [FLD]\n aFileArray[n][2] := [C]\n aFileArray[n][3] := 20\n\nEND\nCOPY TO TEMP\nERASE thing.DBF\ndbcreate( [thing], aFileArray)\nUSE thing NEW\nAPPEND FROM TEMP\nCLOSE DATABASES\nERASE TEMP.DBF\n? \"hello world\"\n```\n\nSee the [xlb](https://github.com/axtens/xlb) project for required non-FST libraries.\n\nBuilding and/or converting to another Modula-2 is left as a task for the reader and/or the author should he find the time.\n\nOther Modula-2 compilers: [M2F](http://floppsie.comp.glam.ac.uk/Glamorgan/gaius/web/m2fabout.html), [GNU Modula-2](https://www.nongnu.org/gm2/download.html), [XDS](https://github.com/excelsior-oss/xds) and [ADW](https://www.modula2.org/adwm2/).\n\nOther good Modula-2 information can be found at [Peter Moylan](http://www.pmoylan.org/pages/m2/Modula2.html)'s site.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faxtens%2Frst","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faxtens%2Frst","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faxtens%2Frst/lists"}