Skip to content

SyntaxTree

[Source]

primitive val SyntaxTree

Constructors

create

[Source]

new val create()
: SyntaxTree val^

Returns


Public Functions

traverse[S: Any #read]

[Source]

fun box traverse[S: Any #read](
  visitor: Visitor[S] ref,
  initial_state: S,
  node: Node val)
: (Node val , ReadSeq[(Node val , String val)] val)

Parameters

  • visitor: Visitor[S] ref
  • initial_state: S
  • node: Node val

Returns


add_line_info

[Source]

fun box add_line_info(
  node: Node val)
: (Node val , Array[Loc[U8 val] val] val , ReadSeq[(Node val , String val)] val)

Parameters

Returns


eq

[Source]

fun box eq(
  that: SyntaxTree val)
: Bool val

Parameters

Returns


ne

[Source]

fun box ne(
  that: SyntaxTree val)
: Bool val

Parameters

Returns