Source

data class Source(content: String, name: String, path: String)

A source of text to lexers.

Author

AdrianTodt, An Tran

Parameters

content

The content of the source.

name

The name of the source.

path

The path to the source.

Constructors

Source
Link copied to clipboard
common
fun Source(content: String, name: String = "?", path: String = "!!no path!!")
Creates a source based of a string.

Properties

content
Link copied to clipboard
common
val content: String
The content of the source.
lines
Link copied to clipboard
common
val lines: List<String>
The lines of the content.
name
Link copied to clipboard
common
val name: String
The name of the source.
path
Link copied to clipboard
common
val path: String
The path to the source.