language-c-0.4.7: Analysis and generation of C code

Copyright(c) [1995..1999] Manuel M. T. Chakravarty (c) 2008 Benedikt Huber (stripped radically)
LicenseBSD-style
Maintainerbenedikt.huber@gmail.com
Stabilityexperimental
Portabilityghc
Safe HaskellNone
LanguageHaskell98

Language.C.Data.Node

Description

source position and unqiue name

Synopsis

Documentation

undefNode :: NodeInfo Source

create a node with neither name nor positional information

isUndefNode :: NodeInfo -> Bool Source

return True if the node carries neither name nor positional information

mkNodeInfoOnlyPos :: Position -> NodeInfo Source

| Given only a source position, create a new node attribute

mkNodeInfoPosLen :: Position -> PosLength -> NodeInfo Source

Given a source position and the position and length of the last token, create a new node attribute

mkNodeInfo :: Position -> Name -> NodeInfo Source

Given a source position and a unique name, create a new attribute identifier

mkNodeInfo' :: Position -> PosLength -> Name -> NodeInfo Source

Given a source position, the position and length of the last token and a unique name, create a new attribute identifier. Strict in

internalNode :: NodeInfo Source

Deprecated: use undefNode instead

getLastTokenPos :: NodeInfo -> PosLength Source

get the position and length of the last token

lengthOfNode :: NodeInfo -> Maybe Int Source

get the number of characters an AST node spans

eqByName :: CNode a => a -> a -> Bool Source

equality by name