By using the lex and yacc tools, you can build a parsing engine that processes text according to specific rules. Before you start UNIX® programmers often find that they need to understand text and other structures with a flexible, but standardized format. You can use parsers in your UNIX applications (and others), either to build simple configuration parsers or even to build the ultimate: your own programming language. Within UNIX®, many elements of the operating system rely on parsing text, from the shell you use to interact with the system, through to common tools and commands like awk or Perl, right through to the C compiler you use to build software and applications. Parsing text - that is, understanding and extracting the key parts of the text - is an important part of many applications. Write text parsers with yacc and lex Skill Level: Intermediate Martin Brown ( ) Freelance Writer Consultant Examine the processes behind building a parser using the lex/flex and yacc/bison tools, first to build a simple calculator and then delve into how you can adopt the same principles for text parsing.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |