Context
Issue #47: "if we want to keep working with single language for example for
javascript to javascript transformation - we just restrict ourselves with
using only features of meta language that JavaScript supports exactly". No
symbol in src/ models per-language capability profiles today. See
requirements.md R-16 and
solution-plans.md S-11.
Blocked by: #10 (a profile is effectively the domain of a translation
rule set).
Scope
LanguageProfile links: per-language capability sets naming the concepts,
link types, and translation rules a target language supports - profiles are
links, hence queryable and user-editable like everything else.
- A profile can be declared by the user or computed from a
#10 rule set's
domain.
ParseConfiguration::with_profile(...) (or a transform-time argument):
operations that would leave the profile fail with a diagnostic link naming
the unsupported feature instead of producing untranslatable output.
- Ship a JavaScript profile as the reference case with a JS→JS transform test
that stays within profile and one that is correctly rejected.
Acceptance criteria
References
Filed from docs/case-studies/issue-47/proposed-issues/11-language-restriction-profiles.md. Part of the implementation plan for #47.
Context
Issue #47: "if we want to keep working with single language for example for
javascript to javascript transformation - we just restrict ourselves with
using only features of meta language that JavaScript supports exactly". No
symbol in
src/models per-language capability profiles today. Seerequirements.mdR-16 andsolution-plans.mdS-11.Blocked by:
#10(a profile is effectively the domain of a translationrule set).
Scope
LanguageProfilelinks: per-language capability sets naming the concepts,link types, and translation rules a target language supports - profiles are
links, hence queryable and user-editable like everything else.
#10rule set'sdomain.
ParseConfiguration::with_profile(...)(or a transform-time argument):operations that would leave the profile fail with a diagnostic link naming
the unsupported feature instead of producing untranslatable output.
that stays within profile and one that is correctly rejected.
Acceptance criteria
documented diagnostic.
#10rule sets (declared or computed domain).bump: minor).References
requirements.mdR-16solution-plans.mdS-11issue-47-76af108c0f24(PR Finish issue #47 parity feature set #48).Filed from
docs/case-studies/issue-47/proposed-issues/11-language-restriction-profiles.md. Part of the implementation plan for #47.