규칙 1.1
1장, 소개 테스트
A "use typeshade" program must mean what this document defines.
A form borrowed from ECMAScript means what ECMAScript gives it, and a form borrowed from WGSL means what WGSL gives it, unless a rule of this document gives it another meaning and records the difference and its reason.
The WGSL the compiler emits must be a program WGSL accepts, and must compute that meaning.
규칙 본문과 그 아래 항목은 설계 문서에 적힌 컴파일러 원문이라 한국어 페이지에서도 영어로 둡니다.
근거
TypeShade is a language of its own that borrows how an author writes from TypeScript and what the surface can express from WGSL. The source’s meaning is the default because an author reads a borrowed form by what it means there; a difference is allowed where it serves the GPU, and it is written down where the author can find it.
출처
changes/0100-typescript-meaning.md (section 1, the principle); WGSL Module and Introduction for the emitted program.
검증 방식
테스트로 확인합니다. 테스트나 게이트 스크립트, CI 워크플로가 이 규칙을 가리키고, 아래 파일 가운데 하나라도 규칙을 더는 가리키지 않으면 추적 검사가 실패합니다.
컴파일러가 이 규칙을 적용하는 곳을 규칙이 직접 적은 내용입니다.
the compile gate (scripts/compile-gate.ts), which hands every registered example to Tint; the open units of docs/typeshade-plan.md are listed in Appendix B.
커밋 af54ddad5에서 이 규칙을 확인하는 파일입니다. 파일마다 규칙을 처음 가리키는 줄로 연결했습니다.
함께 보기
소스
커밋 af54ddad5의 규칙 원문:
docs/language-design.md:36(설계 문서)reqs/rules/RULE-0101.md(추적 항목)