CodeParser`
CodeParser`
SourceConvention
SourceConvention
is an option for various parsing functions which specifies how to represent the Source metadata of syntax trees.
Details and Options
- These are the values for SourceConvention:
-
"LineColumn" {{line1, col1}, {line2, col2}} "SourceCharacterIndex" {start, end} - "LineColumn" is the default for functions like CodeParse.
- {{line1, col1}, {line2, col2}} from "LineColumn" convention is an interval from {line1, col1} (inclusive) to {line2, col2} (exclusive).
- {start, end} from "SourceCharacterIndex" convention can be used in string functions such as StringTake.