0

Identifier

What is identifiers

8th Aug 2017, 3:04 PM
Rashi Singh
Rashi Singh - avatar
6 odpowiedzi
+ 1
n most languages, some character sequences have the lexical form of an identifier but are known as keywords – for example, if is frequently a keyword for an if clause, but lexically is of the same form as ig or foo namely a sequence of letters. This overlap can be handled in various ways: these may be forbidden from being identifiers – which simplifies tokenization and parsing – in which case they are reserved words; they may both be allowed but distinguished in other ways, such as via stropping; or keyword sequences may be allowed as identifiers and which sense is determined from context, which requires a context-sensitive lexer. Non-keywords may also be reserved words (forbidden as identifiers), particularly for forward compatibility, in case a word may become a keyword in future. In a few languages, e.g., PL/1, the distinction is not clear. The scope, or accessibility within a program of an identifier can be either local or global. A global identifier is declared outside of functions and is available throughout the program. A local identifier is declared within a specific function and only available within that function.[1]
8th Sep 2017, 2:21 PM
Neil Bhowmik
Neil Bhowmik - avatar
+ 1
Kuch smjh nhi aaya
8th Sep 2017, 2:34 PM
Rashi Singh
Rashi Singh - avatar
+ 1
Hmm.. Ab a gya
8th Sep 2017, 2:59 PM
Rashi Singh
Rashi Singh - avatar
0
waah😂😂
8th Sep 2017, 2:52 PM
Neil Bhowmik
Neil Bhowmik - avatar
0
basically identifiers are keywords which help to carry out various functions in programming language....such as "new" is a keyword to define an object
8th Sep 2017, 2:53 PM
Neil Bhowmik
Neil Bhowmik - avatar
0
good
8th Sep 2017, 3:00 PM
Neil Bhowmik
Neil Bhowmik - avatar