{"id":15107387,"url":"https://github.com/syntax-script/compiler","last_synced_at":"2026-01-26T12:03:44.101Z","repository":{"id":232261636,"uuid":"783873682","full_name":"syntax-script/compiler","owner":"syntax-script","description":"Syntax Script compiler.","archived":false,"fork":false,"pushed_at":"2024-10-15T19:35:17.000Z","size":530,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2024-10-29T20:19:58.801Z","etag":null,"topics":["compiler","compiler-application","script","syntax","syntax-script","sys","syx"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/syntax-script.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2024-04-08T18:36:59.000Z","updated_at":"2024-10-15T19:35:20.000Z","dependencies_parsed_at":"2024-08-09T21:49:53.894Z","dependency_job_id":"34c907f5-6b4b-48b3-aaac-e81c5cb04c02","html_url":"https://github.com/syntax-script/compiler","commit_stats":{"total_commits":122,"total_committers":2,"mean_commits":61.0,"dds":0.06557377049180324,"last_synced_commit":"57b4660ec15137bc45c8aa7db7a6254b75864f77"},"previous_names":["syntax-script/compiler"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syntax-script%2Fcompiler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syntax-script%2Fcompiler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syntax-script%2Fcompiler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syntax-script%2Fcompiler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/syntax-script","download_url":"https://codeload.github.com/syntax-script/compiler/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237763855,"owners_count":19362310,"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":["compiler","compiler-application","script","syntax","syntax-script","sys","syx"],"created_at":"2024-09-25T21:24:09.164Z","updated_at":"2025-10-23T02:31:03.584Z","avatar_url":"https://github.com/syntax-script.png","language":"TypeScript","readme":"# @syntaxs/compiler `v0.0.3-alpha`\n![Stars](https://badgen.net/github/stars/syntax-script/compiler)\n![Releases](https://badgen.net/github/release/syntax-script/compiler)\n![Version](https://badgen.net/npm/v/@syntaxs/compiler)\n![License](https://badgen.net/github/license/syntax-script/compiler)\n\n\u003e Main compiler module of Syntax Script.\n\nThis module is used to either compile a syntax script project, or create diagnostic reports for language servers.\n\n# Usage\n\nUsing the compiler.\n\n```typescript\nimport { SyntaxScriptCompiler } from '@syntaxs/compiler';\n\nconst compiler = new SyntaxScriptCompiler('/path/to/root/dir','/path/to/out/dir','ts');\ncompiler.compile();\n```\n\nCreating diagnostic reports for language servers.\n\n```typescript\nimport {createSyntaxScriptDiagnosticReport} from '@syntaxs/compiler';\n\nconst report = createSyntaxScriptDiagnosticReport('/path/to/file.syx');\nconsole.log(`${report.items.length} Problems found in the file.`);\n```\n\nHandling compiler errors.\n\n```typescript\nimport { SyntaxScriptCompiler,isCompilerError } from '@syntaxs/compiler';\n\nconst compiler = new SyntaxScriptCompiler('/path/to/root/dir','/path/to/out/dir','ts');\ntry {\n    compiler.compile();\n} catch (e) {\n    if(isCompilerError(e)) {\n        console.log(`There is a syntax error in the file: ${e.message}`);\n        console.log(`This problem is at line ${e.range.start.line}`);\n        console.log(`There are ${e.actions.length} recommended solutions to this problem.`)\n    }\n}\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyntax-script%2Fcompiler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsyntax-script%2Fcompiler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyntax-script%2Fcompiler/lists"}