i have a problem understanding tokens an lexemes...and i really could use some help.....
I was given the following sentences and i have to define the tokens, lexemes, patterns and the regular expressions for the following 3 sentences:
Use triangle ABC
Use square ABCD
Use angle A
the names of triangle, square or angle is defined as the use of 3,5 or one of the first five letters of the latin alphabet (A,B,C,D,E)...
i know this might be easy for you guys but i am new to this...
thanks in advance
Also i have to create one dfa(deterministic finite automata) that describes the names of the above geometrical entities(e.g ABC, ABCD ,A).
I could use some help with theregular expression.....
and a quick question: Can a token have more than one lexeme?
