Alle boeken

Professioneel

Apps Over Coach Inloggen Begin met lezen

Computer Science · Begrippenlijst

Wat is Scanner generator?

Definition 1.4 University Computer Science — Year 3 · Hoofdstuk 1 — Lexical Analysis

A scanner generator is a program that reads an ordered list of rules, each a regular expression with the token class it denotes, and writes a scanner for them: a deterministic automaton stored as a table, and the code that runs it.

The minimal scanner automaton of . Every accepting state is labelled with its token class; “other” on the edge from 4 is 0-9, a-e and g-z, and ␣ is a space.
The minimal scanner automaton of Output 1.1. Every accepting state is labelled with its token class; “other” on the edge from 4 is 0-9, a-e and g-z, and ␣ is a space.
Lees in het hoofdstuk →