need some information.plzzz

my prof. wants us to write a lexical analyzer. the design of the lexical analyzer as a function which can return a quadraple (tokentype, attributevalue, linenumber and line position)..how to design a driver program in which reads the name of the file which holds a sample program of c prog lang, and prints te tokens of this sample program into another file.

Comments

  • : my prof. wants us to write a lexical analyzer. the design of the lexical analyzer as a function which can return a quadraple (tokentype, attributevalue, linenumber and line position)..how to design a driver program in which reads the name of the file which holds a sample program of c prog lang, and prints te tokens of this sample program into another file.
    :


    Eh... alright. Did you have a question?
  • how to design a driver program in which reads the name of the file from the an another program?


  • : how to design a driver program in which reads the name of the file from the an another program?
    :


    It is not clear what you mean.

    What is "a driver program"?

    What is "a sample program"?

    What do you mean with "file from another program"? A text file generated by another program, or the .exe file of the other program, or since you say C language - the source code itself?
  • is a toy programming language the same with C prog. lang?
    honestly im not familiar with this type of programming lanuage (Toy programmning language).?
  • : is a toy programming language the same with C prog. lang?
    : honestly im not familiar with this type of programming lanuage (Toy programmning language).?
    :


    Umm... a "toy programming language" is a term for limited languages like VB and similar. C is most definitely not a toy language. But what has this to do with the question?
  • : : is a toy programming language the same with C prog. lang?
    : : honestly im not familiar with this type of programming lanuage (Toy programmning language).?
    : :
    :
    :
    : Umm... a "toy programming language" is a term for limited languages like VB and similar. C is most definitely not a toy language. But what has this to do with the question?
    :

    If I the OP right, he wants us to help him with a lexical scanner homework, that reads and tokenizes some C code.

    Since we wont do your homework, ask your professor
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories