de·clar·a·tor
C2technical선언하는 사람 또는 프로그래밍에서 선언의 이름·형태를 나타내는 구문 요소
noun명사
- 1
선언자, 공표자 — 무엇인가를 공식적으로 선언하거나 알리는 사람 또는 것C2〔general〕
a person or thing that declares something formally or explicitly
The statute treats the agency as the declarator of the public rule.
그 법령은 그 기관을 공적 규칙의 선언 주체로 본다.
In this theory, the speaker acts as a declarator of intent.
이 이론에서 화자는 의사를 선언하는 주체로 기능한다.
- 2
선언자 — 프로그래밍 언어에서 선언문 안에 들어가 식별자와 그 포인터·배열·함수 형태 등을 지정하는 구문 요소C2〔programming〕
in a programming language, a syntactic element within a declaration that specifies an identifier and its pointer, array, or function structure
In C, the declarator binds the pointer symbol to the variable name.
C에서는 declarator가 포인터 기호를 변수 이름에 결합한다.
The compiler reported an error in the function declarator.
컴파일러가 함수 declarator에서 오류를 보고했다.
뉘앙스 · 쓰임
declaration은 ‘선언문’ 전체를 뜻하는 더 일반적인 말이고, declarator는 그 선언문 안에서 이름과 세부 형태를 지정하는 부분을 가리키는 더 좁고 기술적인 용어입니다. declarant는 주로 법률 문맥에서 ‘진술인, 신고인’을 뜻하며, declarator와 혼동하지 않는 것이 좋습니다.
프로그래밍 문맥, 특히 C/C++ 표준 문서나 컴파일러 오류 설명에서 자주 보입니다. 일반 독자는 잘 모를 수 있으므로, 비전문가에게 설명할 때는 “the part of a declaration that names the variable or function”처럼 풀어 쓰는 것이 좋습니다.
유의어 뉘앙스 비교
- declarer
- 비슷하지만 더 일반적이며, 카드게임 등 특정 문맥에서도 쓰입니다.
- announcer
- 공식 선언보다는 소식이나 정보를 알리는 사람이라는 느낌이 강합니다.
- declaration component
- 의미를 풀어 쓴 표현으로, 공식 용어인 declarator보다 덜 전문적입니다.
- syntax element
- 더 넓은 말로, declarator뿐 아니라 모든 구문 구성 요소를 포함할 수 있습니다.
반의어
- concealer
- 밝히거나 선언하는 사람이 아니라 숨기는 사람을 뜻합니다.
- declaration specifier
- 반의어라기보다는 C/C++ 선언문에서 declarator와 대비되는 다른 부분입니다.
자주 쓰는 표현 · Collocations
noun+noun
- function declarator함수 선언자
- pointer declarator포인터 선언자
- array declarator배열 선언자
- declarator syntax선언자 구문
adj+noun
- abstract declarator추상 선언자
어원 · 암기 팁
[Latin]영어 declare는 라틴어 declarare ‘분명히 밝히다, 선언하다’에서 왔고, declarator는 여기에 행위자나 관련 대상을 나타내는 -or가 붙은 형태입니다.
declare/declar- ‘선언하다, 밝히다’ + -ator ‘행위자·기능을 하는 것’
💡 declare가 ‘선언하다’이므로 declarator는 ‘선언하는 것/선언에서 이름을 정해 주는 부분’으로 기억하면 됩니다.