SpaceDesc

parsley.token.descriptions.SpaceDesc
See theSpaceDesc companion object
final case class SpaceDesc(commentStart: String, commentEnd: String, commentLine: String, commentLineAllowsEOF: Boolean, nestedComments: Boolean, space: CharPredicate, whitespaceIsContextDependent: Boolean)

This class describes how whitespace should be handled lexically.

Attributes

commentEnd

how do multi-line comments end? (empty for no multi-line comments)

commentLine

how do single-line comments start? (empty for no single-line comments)

commentLineAllowsEOF

can a single-line comment be terminated by the end-of-file, or must it ends with a newline

commentStart

how do multi-line comments start? (empty for no multi-line comments)

nestedComments

can multi-line comments be nested within each other?

space

what characters serve as whitespace within the language?

whitespaceIsContextDependent

can the definition of whitespace change depending on context? (in Python, say, newlines are valid whitespace within parentheses, but are significant outside of them)

Since:

4.0.0

Companion:
object
Source:
SpaceDesc.scala
Graph
Supertypes
trait Product
trait Equals
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product