chore(vendor): vendor the InterSystems ObjectScript tree-sitter grammars#590
Merged
Conversation
Vendors the two MIT-licensed grammars from intersystems/tree-sitter-objectscript @a7ffcdf (the language vendor's official grammars, ABI 15) that PR #467 needs: internal/cbm/vendored/grammars/objectscript_udl/ (.cls) internal/cbm/vendored/grammars/objectscript_routine/ (.mac/.inc/.rtn/.int) Each directory carries the verbatim generated parser.c + scanner.c + tree_sitter/ headers + LICENSE. The one adjustment: each scanner.c's upstream `#include "../../common/scanner.h"` is repointed to a per-directory `objectscript_common.h` (a verbatim copy of the upstream common/scanner.h), because this repo's shared vendored/common/scanner.h belongs to the cfml/fsharp grammars and differs. Updates MANIFEST.md + THIRD_PARTY.md. These files are dormant until #467 (the grammar shims + extraction) is rebased on top; main's build is unaffected. Refs #462, #467. Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Vendors the two MIT-licensed InterSystems ObjectScript tree-sitter grammars that #467 needs, as its own focused, auditable supply-chain commit:
internal/cbm/vendored/grammars/objectscript_udl/—.clsinternal/cbm/vendored/grammars/objectscript_routine/—.mac/.inc/.rtn/.intSource: intersystems/tree-sitter-objectscript @
a7ffcdf— MIT, the language vendor's official grammars, ABI 15 (at the runtime ceiling).Vendoring details
parser.c+scanner.c+tree_sitter/headers + upstreamLICENSEin each directory.scanner.c's upstream#include "../../common/scanner.h"is repointed to a per-directoryobjectscript_common.h(a verbatim copy of upstreamcommon/scanner.h) — this repo's sharedvendored/common/scanner.hbelongs to the cfml/fsharp grammars and differs. Recorded inMANIFEST.mdfor future re-vendors.MANIFEST.md+THIRD_PARTY.mdupdated (provenance, pinned commit, license, counts). The SBOM is a release-time artifact, regenerated at build.Why it's build-neutral on
mainNothing on
main#includes these yet — the grammar shims and extraction live in #467. So this PR doesn't change the build onmain; once it lands, #467 rebases on top and its shims (grammar_objectscript_{udl,routine}.c) link the parsers.Refs #462, #467.