memgraph/src
Lovro Lugovic 0b2240e6e4 LCP: Split up PROCESS-FILE
Summary:
Split up `process-file` so that looking at the generated code for an LCP form is
easier from the REPL.

`process-lcp`, `generate-hpp` and `generate-cpp` now perform the generation of
C++ code, but take a list of "C++ elements" (the results of LCP forms) as input
and write their output to streams. They do no reading/evaluating of LCP forms of
their own.

`read-lcp` and `read-lcp-file` are used to read and evaluate a stream of LCP
forms. The latter is a specialized version for file streams which also reports
the position of the form within the file when an error happens.

`process-lcp-string` and `process-lcp-file` are convenient wrappers around the
main functionality that take a string (file) and output to strings (files).
Using `read-lcp` and `read-lcp-file` they process LCP forms and pass them off to
`process-lcp` for code generation.

Reviewers: mtomic, teon.banek

Reviewed By: teon.banek

Subscribers: pullbot

Differential Revision: https://phabricator.memgraph.io/D2097
2019-06-12 09:38:41 +02:00
..
audit Migrate to C++17 2019-04-23 14:46:44 +02:00
auth Add grammar for dump query 2019-06-03 10:44:18 +02:00
communication Make move operations noexcept 2019-05-21 10:46:25 +02:00
data_structures Make move operations noexcept 2019-05-21 10:46:25 +02:00
database Add support for dumping unqiue constraints 2019-06-10 16:50:46 +02:00
distributed LCP: Make :PUBLIC, :PROTECTED and :PRIVATE options aggregating 2019-06-12 09:37:59 +02:00
durability LCP: Fix up LCP warnings 2019-06-12 09:37:47 +02:00
glue Use Allocator for string in TypedValue 2019-06-10 10:35:04 +02:00
integrations Migrate to C++17 2019-04-23 14:46:44 +02:00
io Remove Cap'n Proto 2019-05-08 10:51:10 +02:00
lisp LCP: Split up PROCESS-FILE 2019-06-12 09:38:41 +02:00
query LCP: Fix up LCP warnings 2019-06-12 09:37:47 +02:00
raft LCP: Fix up LCP warnings 2019-06-12 09:37:47 +02:00
requests Implement kafka transform functionality 2018-07-19 12:52:25 +02:00
slk Migrate RPC to SLK 2019-05-06 14:27:57 +02:00
stats Add SSL support to HA RPC 2019-05-20 12:53:52 +02:00
storage Add constraint in HA 2019-05-29 14:55:04 +02:00
telemetry Migrate to C++17 2019-04-23 14:46:44 +02:00
transactions LCP: Fix up LCP warnings 2019-06-12 09:37:47 +02:00
utils Fix utils::SkipList iterator bug 2019-06-10 15:32:47 +02:00
CMakeLists.txt LCP: Minor improvements 2019-06-12 09:38:02 +02:00
config.hpp Migrate to C++17 2019-04-23 14:46:44 +02:00
memgraph_distributed.cpp Move distributed query stuff to new folder 2019-04-24 09:34:53 +02:00
memgraph_ha.cpp Add SSL support to HA RPC 2019-05-20 12:53:52 +02:00
memgraph_init.cpp Move GraphDbAccessor to stack in SN and HA 2019-04-17 11:29:43 +02:00
memgraph_init.hpp Migrate to C++17 2019-04-23 14:46:44 +02:00
memgraph.cpp Migrate to C++17 2019-04-23 14:46:44 +02:00
version.hpp.in Add version.hpp.in and display it on '--version' flag 2017-09-27 09:04:44 +02:00