Skip to content
Snippets Groups Projects
  • Benjamin Cumming's avatar
    Move region/locset S-expr evaluation from python lib to Arbor lib. (#1157) · 3ba5f437
    Benjamin Cumming authored
    * Move label and s-expr parsing code and unit tests from Python to arbor C++ library.
    * Update `locset` and `region` constructors that take string arguments to parse strings as s-expressions or "quoted" labels.
    * Modify the input stream modifier used to parse asc files to use a lookup table for substitutions, renamed it transmogrifier.                                                             
    * Replace `hopefully` type implemented in python headers with an `arb::util::expected`.
    * Add `ARBDEV_COLOR` CMake option that forces gcc and clang to always output color output.
    * Allow arbitrary strings in labels in region and locset expressions.
    * Add `parse_region_expression` and `parse_locset_expression` functions alongside the existing `parse_label_expression` function for use when a region or locset is expected. These calls will promote a quoted string `"label"` to `(region "label")` or 
     `(locset "label")` respectively.
    * Ad...
    Unverified
    3ba5f437