Skip to content

Quality of a parser

Masatake YAMATO edited this page Mar 26, 2022 · 1 revision

Criteria applicable to all parsers

definitions

A parser should extract language objects defining something. A parser should extract a name newly introduced.

external entities

A parser extracts language objects referring to an external entity with a reference tag.

Examples of external entity: "stdio.h", "sys", "rules.mk", and "intro" in the following input.

#inclue <stdio.h>
import sys
source rules.mk
\input{intro}

Fields

A parser should fill end and scope fields.

Criteria applicable to parsers for programming languages

A parser should fill signature fields.

Criteria applicable to parsers for statically typed programming languages

A parser should fill typeref fields.

Criteria applicable to parsers for documentation languages

A parser should extract headers.