1

Closed

Lexical Analysis: Identifiers

description

Does not recognise numbers. eg int f1 = 0.01f;

start is f,
end is f,

file attachments

Closed May 6, 2013 at 5:42 AM by danieljsamson
Fixed

comments

danieljsamson wrote May 5, 2013 at 7:08 PM

it recognise the identifier and then the literal integer decimal. It is likely the that the literal detection is detecting it befor the identifier detection gets a change, or that the id detections does not record the character position correctly. It may also be seeing the numeric character like white space, operators, and punctuators.

danieljsamson wrote May 5, 2013 at 8:31 PM

Analysis splits up the identifiers every time it see's an underscore.

danieljsamson wrote May 6, 2013 at 4:22 AM

huge file

danieljsamson wrote May 6, 2013 at 5:42 AM

Fixed missing semi colons - integer literal detection was blocking the punctuator detection when a integer was detected.
Fixed identifiers - it could recognise a_z a__z a1 aaa1.
Fixed Line Delimited Comments - the last / was being picked up by the operator detection.