Skip to content

Commit c354a6d

Browse files
authored
Merge pull request #17 from anboralabs/array_support
Added support for arrays.
2 parents ad51f47 + 520de0a commit c354a6d

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

build.gradle

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ grammarKit {
1212
}
1313

1414
group 'co.anbora.labs'
15-
version '1.1.1-SNAPSHOT'
15+
version '1.1.2-SNAPSHOT'
1616

1717
repositories {
1818
mavenCentral()
@@ -65,6 +65,11 @@ publishPlugin {
6565
patchPluginXml {
6666
changeNotes """
6767
<ul>
68+
<li><b>1.1.2</b> <em>(2020-11-02)</em> - added arrays support</li>
69+
<ul>
70+
<li>Added support for arrays</li>
71+
</ul>
72+
</li>
6873
<li><b>1.1.1</b> <em>(2020-10-28)</em> - added built-in functions support</li>
6974
<ul>
7075
<li>Added support for functions: get, exists</li>

src/main/grammar/FirebaseRules.bnf

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ ConditionalExpression ::= Expression (BooleanOperator Expression)*
6363

6464
ObjectStatement ::= IDENTIFIER(DOT IDENTIFIER)*
6565

66-
CallFunctionStatement ::= IDENTIFIER(DOT IDENTIFIER)?FunctionParameterStatement
66+
CallFunctionStatement ::= (ArrayLiteralStatement|IDENTIFIER)(DOT IDENTIFIER)?FunctionParameterStatement
6767

6868
FunctionParameterStatement ::= LP ParameterStatement? RP
6969

@@ -89,6 +89,9 @@ Expression ::= BooleanStatement
8989
| ObjectStatement
9090
| LiteralStatement
9191
| NullStatement
92+
| ArrayLiteralStatement
93+
94+
ArrayLiteralStatement ::= LB (ParameterStatement|ArrayLiteralStatement) RB
9295

9396
LiteralStatement ::= (number|string)
9497

0 commit comments

Comments
 (0)