yaml_c_wrapper.cpp wraps YAML::Node into C objects so they can be part of a shared object library to interface with other languages
Implemented components of lattice expansion:
include
inherits
repeat
YAML::Nodes are values that act like pointers, so editing a node will cause the tree the node is contained in to reflect the changes.
In pals-cpp, run
cmake -S . -B build
cmake --build buildThis builds libyaml_c_wrapper.dylib, a shared object library that can be used
by other languages.
It also builds an executable using yaml_reader.cpp containing examples for how to use the library to read lattice files, perform basic manipulations, and write to other lattice files. To see the output, navigate to the build directory and run
./yaml_readerIt will also build the tests.
In the root pals-cpp directory, run
ctest --test-dir build --output-on-failureTo run a specific test, run
ctest --test-dir build -R "Test Name"add test cases for lattice expansion