This is a file from the Wikimedia Commons

File:Xxx Scanner and parser example for C.gif

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search

Original file(1,033 × 715 pixels, file size: 9 KB, MIME type: image/gif)

Summary

Description
English: Scanner (a.k.a. lexer) and parser example for C. Starting from the sequence of characters "if(net>0.0)total+=net*(1.0+tax/100.0);", the scanner composes a sequence of tokens, and categorizes each of them, e.g. as identifier, reserved word, number literal, or operator. The latter sequence is transformed by the parser into a syntax tree, which is then treated by the remaining compiler phases. The scanner and parser handles the regular and properly context-free parts of the grammar for C, respectively.
Date
Source Own work
Author Jochen Burghardt


Converted to SVG.svg
This diagram image could be recreated using vector graphics as an SVG file. This has several advantages; see Commons:Media for cleanup for more information. If an SVG form of this image is available, please upload it and afterwards replace this template with {{vector version available|new image name}}. It is recommended to name the SVG file "Xxx Scanner and parser example for C.svg" - then the template Vector version available (or Vva) does not need the new image name parameter.

Licensing

I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons

attribution share alike

This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current12:14, 4 April 2014Thumbnail for version as of 12:14, 4 April 20141,033 × 715 (9 KB)Jochen BurghardtCaption "Scanner" --> "Lexer"
18:12, 3 April 2014Thumbnail for version as of 18:12, 3 April 20141,033 × 715 (9 KB)Jochen BurghardtUser created page with UploadWizard
The following pages on the English Wikipedia use this file (pages on other projects are not listed):