memgraph/tools
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
..
apollo Reduce cppcheck warnings 2019-04-25 17:20:18 +02:00
emacs-lcp Add lcp-mode for Emacs 2018-08-21 17:22:24 +02:00
gdb-plugins Handle dependent branches in basic Cartesian 2018-06-19 13:06:34 +02:00
plot Add ClientPool and ThreadPool tests to RPC benchmark 2018-11-12 13:05:37 +01:00
src Dump cleanup 2019-06-10 17:01:31 +02:00
tests Use ValueString instead of Value<> 2019-06-03 17:07:49 +02:00
vim-lcp Add basic indentation to vim-lcp plugin 2018-10-31 15:37:42 +01:00
.gitignore Make csv_to_snapshot more user friendly 2017-10-26 09:37:56 +02:00
analyze_rpc_calls Make analyze_rpc_calls script work with new TypeInfo 2018-11-27 15:02:53 +01:00
arc-clang-tidy Fix linter script 2019-04-25 17:21:23 +02:00
CMakeLists.txt Include tools CMakeLists in the top level CMakeLists 2017-12-04 15:18:18 +01:00
coverage_binary Fix coverage_binary tool to work with new toolchain 2019-04-29 13:51:47 +02:00
lcp LCP: Split up PROCESS-FILE 2019-06-12 09:38:41 +02:00
manage_distributed_card_fraud Modify kill and clean operations 2018-03-05 10:00:43 +01:00
memory_usage Remove extension from Python executables 2017-11-27 14:39:51 +01:00
mg_import_csv.dockerfile Make csv_to_snapshot more user friendly 2017-10-26 09:37:56 +02:00
neo_to_memgraph Remove extension from Python executables 2017-11-27 14:39:51 +01:00
requirements.txt Add recovery speed measurement tool 2017-11-16 13:29:06 +01:00
setup Include tools CMakeLists in the top level CMakeLists 2017-12-04 15:18:18 +01:00
snapshot_recovery_speed Remove extension from Python executables 2017-11-27 14:39:51 +01:00