codeimage.io

STUDIO HAZE · image

Topaz source

Open by house policy. Topaz is our own language.

Topaz 5.21 · 113 files

topaz/src/names/rust.tpz

Topaz · 935 B · Original file

1// Rust reserved words and raw identifier spellings for anonymous names.
3import print { 글자합치기 }
4import util { 문자열배열에있음 }
6export function 러스트예약이름(이름: string) -> bool {
7 문자열배열에있음([
8 "Self", "abstract", "as", "async", "await", "become", "box", "break",
9 "const", "continue", "crate", "do", "dyn", "else", "enum", "extern",
10 "false", "final", "fn", "for", "gen", "if", "impl", "in", "let", "loop",
11 "macro", "match", "mod", "move", "mut", "override", "priv", "pub", "ref",
12 "return", "self", "static", "struct", "super", "trait", "true", "try", "type",
13 "typeof", "union", "unsafe", "unsized", "use", "virtual", "where", "while", "yield"
14 ], 이름)
17export function 러스트정규식별자(이름: string) -> string {
18 if !이름.startsWith("r#") { return 이름 }
19 let 글자들 = 이름.scalars()
20 글자합치기(글자들, 2, 글자들.length)

SHA256 992136b9168765235f0bd3a870710bdbf4f988f460b976a3cd48861c8d608d05