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.

更多信息和选项

  • CodeConcreteParse has these options:
  • "FileFormat"Automaticspecific format to assume for code file
    SourceConvention"LineColumn"convention to use for Source metadata

范例

打开所有单元关闭所有单元

Options  (2)

"FileFormat"  (1)

Automatic

XXX "Script"

SourceConvention  (1)

"LineColumn"

"SourceCharacterIndex"

Possible Issues  (1)

  • A string representing a file path is treated as code.
  • File paths must use the File wrapper.