src/Parser/Parser.php
protected function parseArray($ls, array $contents = null, $rs): ArrayNode
    {
        $values = [];
        
        if ($contents !== null) {
            $values[] = $contents[0];
            
            foreach ($contents[1] as list (, $val)) {
                $values[] = $val;
            }
        }
        
        return new ArrayNode($values);
    }
protected function parseArray($ls, array $contents = null, $rs): ArrayNode
    {
        $values = [];
        
        if ($contents !== null) {
            $values[] = $contents[0];
            
            foreach ($contents[1] as list (, $val)) {
                $values[] = $val;
            }
        }
        
        return new ArrayNode($values);
    }
Array ::= '[' ( Statement ( ',' Statement )* )? ']'