class Parser extends AnyRef

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Parser
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Parser(currentFile: Path)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def Pos[_](implicit arg0: P[Any]): P[Position]
  5. def args[_](implicit arg0: P[Any]): P[Args]
  6. def arr[_](implicit arg0: P[Any]): P[Expr]
  7. def arrBody[_](implicit arg0: P[Any]): P[Expr]
  8. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  9. def assertExpr[_](pos: Position)(implicit arg0: P[Any]): P[Expr]
  10. def assertStmt[_](implicit arg0: P[Any]): P[AssertStmt]
  11. def binaryop[_](implicit arg0: P[Any]): P[String]
  12. def bind[_](implicit arg0: P[Any]): P[Bind]
  13. def break[_](implicit arg0: P[Any]): P[Unit]
  14. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  15. def compSuffix[_](implicit arg0: P[Any]): P[Left[(ForSpec, Seq[CompSpec]), Nothing]]
  16. def compspec[_](implicit arg0: P[Any]): P[Seq[CompSpec]]
  17. def constructString(pos: Position, lines: Seq[String]): Str
  18. val currentFile: Path
  19. def document[_](implicit arg0: P[Any]): P[(Expr, FileScope)]
  20. def doubleString[_](implicit arg0: P[Any]): P[Seq[String]]
  21. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  23. def error[_](pos: Position)(implicit arg0: P[Any]): P[Expr.Error]
  24. def escape[_](implicit arg0: P[Any]): P[String]
  25. def escape0[_](implicit arg0: P[Any]): P[String]
  26. def escape1[_](implicit arg0: P[Any]): P[String]
  27. def expr[_](implicit arg0: P[Any]): P[Expr]
  28. def expr1[_](implicit arg0: P[Any]): P[Expr]
  29. def expr2[_](implicit arg0: P[Any]): P[Expr]
  30. def exprSuffix2[_](implicit arg0: P[Any]): P[(Expr) ⇒ Expr]
  31. def field[_](implicit arg0: P[Any]): P[Field]
  32. def fieldKeySep[_](implicit arg0: P[Any]): P[Product with Serializable with Visibility]
  33. def fieldname[_](implicit arg0: P[Any]): P[Product with Serializable with FieldName]
  34. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  35. def forspec[_](implicit arg0: P[Any]): P[ForSpec]
  36. def function[_](pos: Position)(implicit arg0: P[Any]): P[Expr]
  37. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  38. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  39. def id[_](implicit arg0: P[Any]): P[String]
  40. def ifElse[_](pos: Position)(implicit arg0: P[Any]): P[Expr]
  41. def ifspec[_](implicit arg0: P[Any]): P[IfSpec]
  42. def import[_](pos: Position)(implicit arg0: P[Any]): P[Import]
  43. def importStr[_](pos: Position)(implicit arg0: P[Any]): P[ImportStr]
  44. def indexFor[_](name: String)(implicit arg0: P[Any]): Int

    We assign local identifier names to integer offsets into a local variable array at parse time, to avoid having to make a separate pass over the AST to replace them.

    We assign local identifier names to integer offsets into a local variable array at parse time, to avoid having to make a separate pass over the AST to replace them. This is sub-optimal, since we do not keep track of the fact that identifiers in unrelated scopes could share slots in the array, but it's good enough for now since the number of local variables in a particular file tends to be pretty small.

    We do not bother releasing a slot when backtracking after a parse fails, because this parser uses cuts to aggressively prevent backtracking.

    The Jsonnet standard library std always lives at slot 0.

  45. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  46. def literalDoubleString[_](implicit arg0: P[Any]): P[Seq[String]]
  47. def literalSingleString[_](implicit arg0: P[Any]): P[Seq[String]]
  48. def local[_](implicit arg0: P[Any]): P[Expr]
  49. def localExpr[_](implicit arg0: P[Any]): P[Expr]
  50. def member[_](implicit arg0: P[Any]): P[Member]
  51. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  52. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  53. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  54. def number[_](implicit arg0: P[Any]): P[Num]
  55. def objinside[_](implicit arg0: P[Any]): P[ObjBody]
  56. def objlocal[_](implicit arg0: P[Any]): P[Bind]
  57. def params[_](implicit arg0: P[Any]): P[Params]
  58. def singleString[_](implicit arg0: P[Any]): P[Seq[String]]
  59. def string[_](implicit arg0: P[Any]): P[String]
  60. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  61. def toString(): String
    Definition Classes
    AnyRef → Any
  62. def tripleBarBlank[_](implicit arg0: P[Any]): P[String]
  63. def tripleBarBlankHead[_](implicit arg0: P[Any]): P[String]
  64. def tripleBarString[_](implicit arg0: P[Any]): P[Seq[String]]
  65. def tripleBarStringBody[_](w: String)(implicit arg0: P[Any]): P[Seq[String]]
  66. def tripleBarStringHead[_](implicit arg0: P[Any]): P[(Seq[String], String, String)]
  67. def tripleBarStringLines[_](implicit arg0: P[Any]): P[Seq[String]]
  68. def unaryOpExpr[_](pos: Position, op: Char)(implicit arg0: P[Any]): P[UnaryOp]
  69. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  70. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  71. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped