codeimage.io

STUDIO HAZE · image

Topaz source

Open by house policy. Topaz is our own language.

Topaz 5.21 · 113 files

topaz/src/names/elisp.tpz

Topaz · 977 B · Original file

1// Emacs Lisp reserved symbols and interned symbol spellings for anonymous names.
3import util { 문자열배열에있음 }
5export function 이맥스리습예약이름(이름: string) -> bool {
6 문자열배열에있음([
7 "nil", "t", "&allow-other-keys", "&aux", "&body", "&environment",
8 "&key", "&optional", "&rest", "&whole", "and", "catch", "cond",
9 "condition-case", "defconst", "defcustom", "defmacro", "defun",
10 "defvar", "function", "if", "interactive", "lambda", "let", "let*",
11 "or", "progn", "prog1", "prog2", "quote", "setq", "setq-default",
12 "unwind-protect", "while"
13 ], 이름)
16export function 이맥스리습인턴이름(글: string) -> string {
17 let 글자들 = 글.scalars()
18 let mut 이름 = ""
19 let mut 색인 = 0
20 while 색인 < 글자들.length {
21 if 글자들[색인] == "\\" && 색인 + 1 < 글자들.length {
22 색인 = 색인 + 1
23 }
24 이름 = 이름 + 글자들[색인]
25 색인 = 색인 + 1
26 }
27 이름

SHA256 24a2cf45b8ba84f41412a398bb25ddd869dcdeadb363c6fcc8c809f755110ac8