UNPKG

falcor-path-syntax

Version:
34 lines (30 loc) 923 B
```javascript // The formal specification of the path-syntax interface provided in falcor. // The top level spec for the path-syntax ``` ###### Top Level ```javascript <path-syntax> ::= ( <identifier> | <indexer> ) ( .<identifier> | <indexer> )* ``` ###### Indexer ```javascript <indexer> ::= [ <inner-indexer> ] <inner-indexer> ::= <extended-indentifier> | <range> | <routed-token> <range> ::= <index>(..|...)<index> <routed-token> ::= { <inner-routed-token> } ``` ###### Identifier ```javascript <extended-identifier> ::= <index> | <quoted-identifier> <quoted-identifier> ::= ' <single-quote-escape> ' | " <double-quote-escape> " ``` ###### Literals ```javascript <index> ::= 0-9 <escape> ::= \ <single-quote-escape> ::= (<identifier-all>|\')* <double-quote-escape> ::= (<identifier-all>|\")* <identifier> ::= [a-Z_$]a-Z_$0-9 <identifier-all> ::= .* <inner-routed-token> ::= ranges | integers | keys ```