All Downloads are FREE. Search and download functionalities are using the official Maven repository.

miksilo.modularLanguages.deltas.yaml.ModularYamlLanguage.scala Maven / Gradle / Ivy

The newest version!
package miksilo.modularLanguages.deltas.yaml

import miksilo.modularLanguages.core.deltas.{LanguageFromDeltas, ParseUsingTextualGrammar}
import miksilo.editorParser.parsers.editorParsers.UntilTimeStopFunction
import miksilo.modularLanguages.deltas.json.ModularJsonLanguage

object ModularYamlLanguage {
  val parserDelta = ParseUsingTextualGrammar(UntilTimeStopFunction(100), indentationSensitive = true)
  val deltasWithoutParser = Seq(YamlObjectDelta, BlockScalarDelta, HashLineCommentsDelta, YamlArrayDelta, PlainScalarDelta, YamlCoreDelta) ++ ModularJsonLanguage.deltas
  val deltas = Seq(parserDelta) ++ deltasWithoutParser
  val language = LanguageFromDeltas(deltas)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy