My Computer Forum Computer Science Forum

Go Back   My Computer Forum > Computer Science Forum > Programming

Programming Programming Languages, Interpreters, and Compilers - Assembly, Declarative, Machine, Object Oriented, Iterative


Reply
 
LinkBack Thread Tools Display Modes
January 22nd, 2010, 06:16 AM   #1
 
Joined: Jan 2010
Posts: 1
Help needed with tokens and lexemes

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?
GlobeXgr is offline  
 

My Computer Forum is free to register and we welcome everyone!

Reply

  My Computer Forum > Computer Science Forum > Programming

Tags
lexemes, needed, tokens



Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with a VoIP softphone is needed Deftone Programming 0 August 30th, 2012 04:17 AM
Help needed about CPU vs SATA and USB 3.0 speed foxclab01 Computer Hardware 0 August 11th, 2011 07:02 AM
Help needed wellsie59 Networking 3 August 2nd, 2011 12:21 AM
Multimedia Audio Control needed alevis Computer Hardware 1 August 16th, 2010 08:46 PM
tokens and lexemes terminator_911 Programming 5 July 19th, 2008 11:25 AM





Copyright © 2018 My Computer Forum Forum. All rights reserved.