开发者

Naming a set of method,field,local var, and function

In writing a compiler grammar, I'm trying to come up with a name/label fo开发者_开发问答r a set of elements that include pretty much everything with an ident in it: method, field, local var and function

I thought "members" first, but vars and functions aren't class members. Any ideas?

EDIT: This is higher up than an identifier. Here's how it's used:

memberReference
 :
 IDENT
 | functionCall
 ;
// Then elsewhere
memberReference ('.' memberReference)*


The common term for this is ID (identifier). ANTLR uses that token name a lot. For example, from Software Development - Glossary:

identifier The name of something in a program. E.g. in Java, the name of a variable, method, class, interface or package.


I ended up just leaving it as "memberReference" even though I believe it's not precise.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜