language-javascript-0.4.10: Parser for JavaScript

Safe HaskellSafe-Infered

Language.JavaScript.Parser.AST

Synopsis

Documentation

data Node Source

data SrcSpan Source

Source location spanning a contiguous section of a file.

Constructors

SpanCoLinear

A span which starts and ends on the same line.

SpanMultiLine

A span which starts and ends on different lines.

SpanPoint

A span which is actually just one point in the file.

SpanEmpty

No span information.

data AlexPosn Source

Posn records the location of a token in the input text. It has three fields: the address (number of characters preceding the token), line number and column of a token within the file. start_pos gives the position of the start of the file and eof_pos a standard encoding for the end of file. move_pos calculates the new position after traversing a given character, assuming the usual eight character tab stops.

Constructors

AlexPn !Int !Int !Int 

Instances