https://github.com/kareimgazer/tiny-scanner
The Scanner part of a compiler for the Tiny Language
https://github.com/kareimgazer/tiny-scanner
compiler compiler-construction compiler-design scanner tiny-language
Last synced: about 1 year ago
JSON representation
The Scanner part of a compiler for the Tiny Language
- Host: GitHub
- URL: https://github.com/kareimgazer/tiny-scanner
- Owner: KareimGazer
- Created: 2021-11-17T18:24:35.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-11-18T15:11:16.000Z (over 4 years ago)
- Last Synced: 2025-02-03T12:43:04.909Z (about 1 year ago)
- Topics: compiler, compiler-construction, compiler-design, scanner, tiny-language
- Language: C++
- Homepage:
- Size: 7.81 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Tiny-Scanner
The Scanner part of a compiler for the Tiny Language
# Abstract
Scanners represent the first stage in compilation, where the parser gets tokens from a
stream of characters.
In this paper, we represent an implementation of a scanner of the Tiny language based on
the description mentioned in the reference “Compiler Construction Principles and Practice”.
We exceed basic implementation by handling Error detection, text Buffers, end of file (EOF),
and reserved lookups
# Features
- Output was compared to match exactly that of the reference.
- Errors are detected.
- points to the last character before the error.
- description of the tokens line by line.
- tested with all given examples in addition to the reference example in fig 2.11