File:Xxx Scanner and parser example for C.gif
From Wikimedia Commons, the free media repository
Jump to navigation
Jump to search
Size of this preview: 800 × 554 pixels. Other resolutions: 320 × 221 pixels | 640 × 443 pixels | 1,033 × 715 pixels.
Original file (1,033 × 715 pixels, file size: 9 KB, MIME type: image/gif)
File information
Structured data
Captions
Summary
[edit]DescriptionXxx Scanner and parser example for C.gif |
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 |
This diagram image could be re-created 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
[edit]I, the copyright holder of this work, hereby publish it under the following license:
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/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 12:14, 4 April 2014 | 1,033 × 715 (9 KB) | Jochen Burghardt (talk | contribs) | Caption "Scanner" --> "Lexer" | |
18:12, 3 April 2014 | 1,033 × 715 (9 KB) | Jochen Burghardt (talk | contribs) | User created page with UploadWizard |
You cannot overwrite this file.
File usage on Commons
There are no pages that use this file.
File usage on other wikis
The following other wikis use this file:
- Usage on en.wikipedia.org
- Usage on fi.wikipedia.org
- Usage on kaa.wikipedia.org
- Usage on pl.wikibooks.org
- Usage on zh.wikipedia.org