STUDIO HAZE · image
Topaz source
Open by house policy. Topaz is our own language.
Topaz 5.9 · 42 files
topaz/src/nodes.tpz
Topaz · 3914 B · Original file
1
// Language node-table dispatch.3
import nodes.c { 씨노드종류표 }4
import nodes.cpp { 씨플러스플러스노드종류표 }5
import nodes.csharp { 씨샵노드종류표 }6
import nodes.coffeescript { 커피스크립트노드종류표 }7
import nodes.dart { 다트노드종류표 }8
import nodes.elixir { 엘릭서노드종류표 }9
import nodes.elisp { 이맥스리습노드종류표 }10
import nodes.elm { 엘름노드종류표 }11
import nodes.go { 고노드종류표 }12
import nodes.haskell { 하스켈노드종류표 }13
import nodes.java { 자바노드종류표 }14
import nodes.javascript { 자바스크립트노드종류표 }15
import nodes.julia { 줄리아노드종류표 }16
import nodes.kotlin { 코틀린노드종류표 }17
import nodes.lispex { 리스펙스노드종류표 }18
import nodes.topaz_language { 토파즈언어노드종류표 }19
import nodes.lua { 루아노드종류표 }20
import nodes.objc { 오브젝티브씨노드종류표 }21
import nodes.ocaml { 오캐멀노드종류표 }22
import nodes.php { 피에이치피노드종류표 }23
import nodes.python { 파이썬노드종류표 }24
import nodes.r { 알노드종류표 }25
import nodes.rescript { 리스크립트노드종류표 }26
import nodes.ruby { 루비노드종류표 }27
import nodes.rust { 러스트노드종류표 }28
import nodes.scala { 스칼라노드종류표 }29
import nodes.solidity { 솔리디티노드종류표 }30
import nodes.swift { 스위프트노드종류표 }31
import nodes.typescript { 타입스크립트노드종류표 }32
import nodes.zig { 지그노드종류표 }34
// BEGIN GENERATED TOPAZ PRINTER CODEWORD TABLE35
// 백 단위는 인쇄 계열이다: 원시 1, 모음 2, 계산 3, 단순문 4, 제어문 5, 클래스 6, 형식 7.36
// 각 표의 코드포인트는 U+E000 + 내부 종류이며 U+E000은 미매핑 표지다.37
export function 노드종류(언어번호: int, 코드: int) -> int {38
if 코드 < 0 || 코드 > 510 { return 0 }39
let 표 = if 언어번호 == 1 { 자바스크립트노드종류표() }40
else if 언어번호 == 2 { 타입스크립트노드종류표() }41
else if 언어번호 == 3 { 파이썬노드종류표() }42
else if 언어번호 == 4 { 고노드종류표() }43
else if 언어번호 == 5 { 러스트노드종류표() }44
else if 언어번호 == 6 { 자바노드종류표() }45
else if 언어번호 == 7 { 씨노드종류표() }46
else if 언어번호 == 8 { 씨플러스플러스노드종류표() }47
else if 언어번호 == 9 { 씨샵노드종류표() }48
else if 언어번호 == 10 { 루비노드종류표() }49
else if 언어번호 == 11 { 피에이치피노드종류표() }50
else if 언어번호 == 12 { 스위프트노드종류표() }51
else if 언어번호 == 13 { 코틀린노드종류표() }52
else if 언어번호 == 14 { 스칼라노드종류표() }53
else if 언어번호 == 15 { 다트노드종류표() }54
else if 언어번호 == 16 { 엘릭서노드종류표() }55
else if 언어번호 == 17 { 하스켈노드종류표() }56
else if 언어번호 == 18 { 루아노드종류표() }57
else if 언어번호 == 19 { 알노드종류표() }58
else if 언어번호 == 21 { 오캐멀노드종류표() }59
else if 언어번호 == 20 { 줄리아노드종류표() }60
else if 언어번호 == 22 { 엘름노드종류표() }61
else if 언어번호 == 23 { 리스크립트노드종류표() }62
else if 언어번호 == 24 { 커피스크립트노드종류표() }63
else if 언어번호 == 25 { 오브젝티브씨노드종류표() }64
else if 언어번호 == 26 { 이맥스리습노드종류표() }65
else if 언어번호 == 27 { 솔리디티노드종류표() }66
else if 언어번호 == 28 { 지그노드종류표() }67
else if 언어번호 == 29 { 리스펙스노드종류표() }68
else if 언어번호 == 30 { 토파즈언어노드종류표() }69
else { return 0 }70
(표.codePointAt(코드) ?? 57344) - 5734471
}72
// END GENERATED TOPAZ PRINTER CODEWORD TABLESHA256 6b4ae0ffd29827d90cb3316d48d2a08661f312a7b4773e602b938fbb24fffdfc