全部书籍

专业

应用 关于 Coach 登录 开始阅读

书籍暂未推出简体中文版——当前显示英文版。

Computer Science · 术语表

什么是 Scanner generator?

Definition 1.4 University Computer Science — Year 3 · 第 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.
在原文中阅读 →