smollerGraph 0.20.2
A small graph database, from scratch
Loading...
Searching...
No Matches
parser.cc File Reference
#include "smollergraph/parser.h"
#include <algorithm>
#include <cctype>
#include <charconv>
#include <cstddef>
#include <cstdint>
#include <iterator>
#include <string>
#include <utility>
#include <vector>
#include "absl/status/status.h"
#include "absl/status/statusor.h"
#include "absl/strings/str_cat.h"
#include "smollergraph/lexer.h"

Go to the source code of this file.

Namespaces

namespace  smollergraph
 

Functions

absl::StatusOr< Query > smollergraph::Parse (std::string_view text)
 Reads a query.
 
absl::StatusOr< std::vector< Property > > smollergraph::ParseProperties (std::string_view text)
 Reads properties as Cypher writes them, in braces, such as {legs: 4, diet: 'omnivore'}, with a string or a whole number for each key.