Crate cton_reader [] [src]

Cretonne file reader library.

The cton_reader library supports reading .cton files. This functionality is needed for testing Cretonne, but is not essential for a JIT compiler.

Structs

Comment

A comment in a parsed function.

Details

Additional details about a function parsed from a text string. These are useful for detecting test commands embedded in comments etc. The details to not affect the semantics of the function.

Error

A parse error is returned when the parse failed.

Location

The location of a Token or Error.

SourceMap

Mapping from entity names to source locations.

TestCommand

A command appearing in a test file.

TestFile

A parsed test case.

Enums

IsaSpec

The ISA specifications in a .cton file.

TestOption

An option on a test command.

Functions

parse_functions

Parse the entire text into a list of functions.

parse_options

Parse an iterator of command line options and apply them to config.

parse_test

Parse the entire text as a test case file.

Type Definitions

Result

Result of a parser operation. The Error variant includes a location.