lex

S

snigdha

I wanted to write a lex program using an assembly language as
input.Taking assembly language keywords as tokens,But how to write it?
Please sent it to me.
 
C

Chris Dollin

snigdha said:
I wanted to write a lex program using an assembly language as
input.Taking assembly language keywords as tokens,But how to write it?

lex and friends are the subject matter of comp.compilers and
comp.unix.programmer where you'll likely get more specialised help.
When you ask there, you'll probably need to be a bit more specific
about what you're trying to do.

"How to write it" is covered in various places, amongst which is
the lex-and-yacc book, see eg http://oreilly.com/catalog/9781565920002/

You write a bunch of regular expressions and code to do something
when they match.
Please sent it to me.

It's not very polite to barge into a newsgroup, ask a hardly-on-topic
question, and then expect people to do the work for you. You could at
least have showed us what you've tried.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,065
Latest member
OrderGreenAcreCBD

Latest Threads

Top