CodeParser`
CodeParser`

CodeConcreteParse

CodeConcreteParse["code"]

parses a string of WL code returning a concrete syntax tree.

CodeConcreteParse[File[src]]

parses a file of WL code returning a concrete syntax tree.

Details and Options

  • CodeConcreteParse has these options:
  • SourceConvention "LineColumn"convention to use for Source metadata

Examples

open allclose all

Options  (1)

SourceConvention  (1)

Using "LineColumn" convention:

Using "SourceCharacterIndex" convention:

Possible Issues  (1)

A string representing a file path is treated as code.

File paths must use the File wrapper.