SpaceDesc

parsley.token.descriptions.SpaceDesc
See theSpaceDesc companion object
final case class SpaceDesc(lineCommentStart: String, lineCommentAllowsEOF: Boolean, multiLineCommentStart: String, multiLineCommentEnd: String, multiLineNestedComments: Boolean, space: CharPredicate, whitespaceIsContextDependent: Boolean)

This class describes how whitespace should be handled lexically.

Value parameters

lineCommentAllowsEOF

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

lineCommentStart

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

multiLineCommentEnd

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

multiLineCommentStart

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

multiLineNestedComments

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)

Attributes

Since

4.0.0

Companion
object
Source
SpaceDesc.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product