Regarding Identifier in C#


why cannot write identifier name starts integer????

can 1 give me feedback....


latheesh k contact no:+91-9747369936

the reason why specific programming language such c# accepts or not accepts specific pattern of characters identifiers compiler needs able recognize identifiers when parsing source code. effect, designers of language create series of syntactical diagrams establish acceptable paths later implemented in coding of compiler. ideally, such paths need unambiguous initial phase of compilation ("parsing", versus second phase "syntactical analysis") able "tokenize" input , classify each element according syntactical role. if initial character of identifier allowed number, have tokens such instance "1d" represent either identifier or constant (1 decimal). perhaps real role of such token in cases dissambiguated @ later stage of compilation, not during initial parsing stage. compiling such language require compiler perform forward , backwards movements along syntactic tree, which makes more complex (and slower) forward-only compiler, , therefore tends avoided in modern languages.


Visual Studio Languages  ,  .NET Framework  >  Visual C#



Comments

Popular posts from this blog

Azure DocumentDB Owner resource does not exist

job syspolicy_purge_history job fail in sqlserver 2008

Trying to register with public marketplace error with 'Get-AzureStackStampInformation'