Hot Search : Source embeded web remote control p2p game More...
Location : Home Downloads SourceCode Other ELanguage

lex_simple

  • Category : ELanguage
  • Tags :
  • Update : 2012-11-26
  • Size : 23kb
  • Downloaded :0次
  • Author :yif****
  • About : Nobody
  • PS : If download it fails, try it again. Download again for free!
Introduction - If you have any usage issues, please Google them yourself
Write the LEX program as per the specifications below. -------------------------------------------------------------------------------- Recognize Action Arithmetic (+,-,*, /) Print the operator along with the line number Relational (<, <=, >, >=, !=, ==) Print the operator along with the line number Assignment (=) Print the operator along with the line number Parenthesis (left and right ones) No action for now Some set of Reserved Words (for, if, while, int, ...) Print the Reserved word along with the line number Identifiers Insert into a table and keep track of the line number Numbers Print the number (should handle integer and floating point) along with the line number Keep explicit track of the current line number by recognizing "\n" as a separate token. Do not use the LEX line number variable. At the end, print the number of distinct identifiers and the line numbers on which they occur. Sample Input: int i, n, sum i =
Packet file list
(Preview for download)
hw1
hw1.in
lex.yy.c
hw1.l
Related instructions
  • We are an exchange download platform that only provides communication channels. The downloaded content comes from the internet. Except for download issues, please Google on your own.
  • The downloaded content is provided for members to upload. If it unintentionally infringes on your copyright, please contact us.
  • Please use Winrar for decompression tools
  • If download fail, Try it againg or Feedback to us.
  • If downloaded content did not match the introduction, Feedback to us,Confirm and will be refund.
  • Before downloading, you can inquire through the uploaded person information

Nothing.

Post Comment
*Quick comment Recommend Not bad Password Unclear description Not source
Lost files Unable to decompress Bad
*Content :
*Captcha :
CodeBus is the largest source code store in internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.