A

ArrayItemNodeClass in namespace Nette\Neon\Node
ArrayNodeClass in namespace Nette\Neon\Node

B

$ Encoder#blockModeProperty in class Encoder
BlockArrayNodeClass in namespace Nette\Neon\Node
LiteralNode::baseConvert() — Method in class LiteralNode

Converts a base-N digit string to an integer, or to a decimal string if it exceeds PHP_INT_MAX.

D

DecoderClass in namespace Nette\Neon

Parser for Nette Object Notation.

Decoder::decode() — Method in class Decoder

Parses a NEON string and returns the corresponding PHP value.

Neon::decode() — Method in class Neon

Parses a NEON string and returns the corresponding PHP value.

Neon::decodeFile() — Method in class Neon

Parses a NEON file and returns the corresponding PHP value. Strips the UTF-8 BOM if present.

E

EncoderClass in namespace Nette\Neon

Converts value to NEON format.

Encoder::encode() — Method in class Encoder

Encodes a PHP value to a NEON string.

EntityClass in namespace Nette\Neon

Representation of a NEON entity, e.g. Column(type: int).

ExceptionClass in namespace Nette\Neon

The exception that indicates error of NEON processing.

Neon::encode() — Method in class Neon

Encodes a PHP value to a NEON string.

$ Node#endTokenPosProperty in class Node
$ Node#endProperty in class Node
EntityChainNodeClass in namespace Nette\Neon\Node
EntityNodeClass in namespace Nette\Neon\Node
TokenStream::error() — Method in class TokenStream

Throws a parsing exception with position information from the current or given token.

G

Node::getIterator() — Method in class Node
ArrayItemNode::getIterator() — Method in class ArrayItemNode
ArrayNode::getIterator() — Method in class ArrayNode
EntityChainNode::getIterator() — Method in class EntityChainNode
EntityNode::getIterator() — Method in class EntityNode
TokenStream::getIndex() — Method in class TokenStream
TokenStream::getIndentation() — Method in class TokenStream

Returns the whitespace indentation of the token at the current position, i.e. the whitespace token immediately following a newline (or at the start).

I

$ Encoder#indentationProperty in class Encoder
ArrayItemNode::itemsToArray() — Method in class ArrayItemNode
ArrayItemNode::itemsToInlineString() — Method in class ArrayItemNode
ArrayItemNode::itemsToBlockString() — Method in class ArrayItemNode
$ ArrayNode#itemsProperty in class ArrayNode
InlineArrayNodeClass in namespace Nette\Neon\Node
Token::is() — Method in class Token
TokenStream::is() — Method in class TokenStream

Tells whether the token at current position is of given kind.

K

$ ArrayItemNode#keyProperty in class ArrayItemNode

L

LexerClass in namespace Nette\Neon
LiteralNodeClass in namespace Nette\Neon\Node

N

NeonClass in namespace Nette\Neon

Facade for parsing and encoding the NEON format.

NodeClass in namespace Nette\Neon

Base class for all AST nodes produced by the NEON parser.

P

Decoder::parseToNode() — Method in class Decoder

Parses a NEON string and returns the root AST node.

$ Exception#positionProperty in class Exception
LiteralNode::parse() — Method in class LiteralNode
StringNode::parse() — Method in class StringNode

Parses a raw NEON string token (including its delimiters) and returns the decoded string value.

ParserClass in namespace Nette\Neon
Parser::parse() — Method in class Parser

Parses a token stream into an AST.

PositionClass in namespace Nette\Neon

Represents a position (line, column, offset) within a NEON input string.

R

Lexer::requiresDelimiters() — Method in class Lexer

Checks whether the string must be quoted when encoding to NEON.

S

$ Node#startTokenPosProperty in class Node
$ Node#startProperty in class Node
StringNodeClass in namespace Nette\Neon\Node
TokenStream::seek() — Method in class TokenStream

T

Lexer::tokenize() — Method in class Lexer

Tokenizes a NEON string into a TokenStream. Normalizes CR line endings.

Node::toValue() — Method in class Node

Converts the node to its PHP value.

Node::toString() — Method in class Node

Converts the node back to its NEON representation.

ArrayItemNode::toValue() — Method in class ArrayItemNode

Use itemsToArray() on the parent array node instead.

ArrayItemNode::toString() — Method in class ArrayItemNode

Use itemsToBlockString() or itemsToInlineString() instead.

ArrayNode::toValue() — Method in class ArrayNode
BlockArrayNode::toString() — Method in class BlockArrayNode

Converts the node back to its NEON representation.

EntityChainNode::toValue() — Method in class EntityChainNode

Converts the node to its PHP value.

EntityChainNode::toString() — Method in class EntityChainNode

Converts the node back to its NEON representation.

EntityNode::toValue() — Method in class EntityNode

Converts the node to its PHP value.

EntityNode::toString() — Method in class EntityNode

Converts the node back to its NEON representation.

InlineArrayNode::toString() — Method in class InlineArrayNode

Converts the node back to its NEON representation.

LiteralNode::toValue() — Method in class LiteralNode
LiteralNode::toString() — Method in class LiteralNode

Converts the node back to its NEON representation.

StringNode::toValue() — Method in class StringNode

Converts the node to its PHP value.

StringNode::toString() — Method in class StringNode

Converts the node back to its NEON representation.

TokenClass in namespace Nette\Neon
TokenStreamClass in namespace Nette\Neon
TokenStream::tryConsume() — Method in class TokenStream

Consumes the current token of given kind or returns null.

TraverserClass in namespace Nette\Neon
Traverser::traverse() — Method in class Traverser

V

Encoder::valueToNode() — Method in class Encoder

Converts a PHP value to its AST node representation.

$ ArrayItemNode#valueProperty in class ArrayItemNode

_

Entity::__construct() — Method in class Entity
Entity::__set_state() — Method in class Entity
Exception::__construct() — Method in class Exception
BlockArrayNode::__construct() — Method in class BlockArrayNode
EntityChainNode::__construct() — Method in class EntityChainNode
EntityNode::__construct() — Method in class EntityNode
InlineArrayNode::__construct() — Method in class InlineArrayNode
LiteralNode::__construct() — Method in class LiteralNode
StringNode::__construct() — Method in class StringNode
Position::__construct() — Method in class Position
Position::__toString() — Method in class Position
Token::__construct() — Method in class Token
TokenStream::__construct() — Method in class TokenStream