|
Language.C.Data.Ident | Portability | ghc | Stability | experimental | Maintainer | benedikt.huber@gmail.com |
|
|
|
Description |
This module provides the notion of identifiers in C, speed up using hashing.
Identifiers are associated optionally associated with a NodeInfo, i.e. with
a unique Name and a source location (Position). The ordering relation on
identifiers is based on the hash and does not follow the lexical order.
|
|
Synopsis |
|
|
|
Documentation |
|
|
C identifiers
| Constructors | |
|
|
|
References uniquely determining a struct, union or enum type.
Those are either identified by an string identifier, or by a unique
name (anonymous types).
| Constructors | |
|
|
|
Return true if the struct/union/enum reference is anonymous.
|
|
|
build an identifier from a string.
- only minimal error checking, e.g., the characters of the identifier are
not checked for being alphanumerical only; the correct lexis of the
identifier should be ensured by the caller, e.g., the scanner.
- for reasons of simplicity the complete lexeme is hashed.
|
|
|
returns a builtin identifier (has builtin position and no unique name)
|
|
|
returns an internal identifier (has internal position and no unique name)
|
|
|
return an internal identifier with position info
|
|
|
return True if the given identifier is internal
|
|
|
string of an identifier
|
|
|
dump the identifier string and its positions for debugging purposes
|
|
Produced by Haddock version 2.6.0 |