331 Commits

Author SHA1 Message Date
9767ea20b4 FEATURE: Better error messages for select expression parsing. 2019-01-16 17:47:07 -06:00
e838554fff FIX: Modules were attempting to conver std imports into absolute paths. 2019-01-15 19:22:10 -06:00
5b05405618 FIX: presence checks for tuples with NULL values works now. 2019-01-15 18:51:35 -06:00
599ed31414 FIX: NULL equality should be useable with any type. 2019-01-15 18:49:15 -06:00
98323eabbd FIX: Multiple packaging errors.
* The include setting doesn't do what I thought it did.
* Also when packaging the rules on what build.rs can do
  are a little more strict than was immediately apparent.
2019-01-14 20:41:12 -06:00
685ee7407e FEATURE: make macros close over their environment.
The benefits are great enough to allow this and the benefits of
not allowing closures are not terribly useful.

We do not get the same benefits for modules though so we don't add
it to them.
2019-01-14 18:23:39 -06:00
5c2d8662bf FIX: Handle binding and named field collisions in lookups. 2019-01-13 22:51:20 -06:00
207a08d112 FEATURE: Better rendering of Val's to text. 2019-01-13 22:25:26 -06:00
38fc521e3e FIX: The in memory asset cache should no longer canonicalize.
The pseudo relative paths for std libraries won't work with them.
2019-01-13 22:05:20 -06:00
547c271aa1 FEATURE: Special case the std/ import prefix.
It's a reserved import path for our std library.

closes #27
2019-01-13 20:35:23 -06:00
50a3d33208 FEATURE: Generate a hashmap of path to String for std libraries.
prework for #27
2019-01-13 20:34:50 -06:00
92d2857f83 FEATURE: Add a default import_path search location.
We'll always search "~/.ucg".
2019-01-13 15:00:26 -06:00
3cfed0d0e1 FEATURE: Better error reporting using must!.
Some errors around punctuation were less than helpful. This should
improve that situation somewhat.
2019-01-13 14:31:04 -06:00
c4505ac2ab FEATURE: Add a counter for our assertion output per file. 2019-01-13 14:20:08 -06:00
54faeede5e FEATURE: Imports as expressions.
This is a breaking change for the language. However it makes a number of things
easier. Like importing specific symbols from a file.

adds: #28
2019-01-13 14:10:43 -06:00
0f7498884a FEATURE: No longer require the dsl to output ok vs not ok. 2019-01-13 13:53:24 -06:00
6f9ba2ac33 FEATURE: Add the range expression.
fixes: #24
2019-01-10 19:40:32 -06:00
d989e47706 FEATURE: Use a better DSL for unit tests.
* Assert now requires a tuple instead of a string containing
  statements.
* We include a helpful ucg based unit testing module.

Fixes: #26
2019-01-10 17:17:57 -06:00
1b45066f39 BUGFIX: Found a bug in deep equality for lists :-( 2019-01-08 19:26:56 -06:00
03d69ede42 FEATURE: Allow the inpsect command to process full expressions.
Related to #22
2019-01-07 19:50:15 -06:00
8dc5b43a93 FIX: our DOT binary operator change broke symbol validation logic for macros. 2019-01-07 19:43:50 -06:00
83a641e740 FEATURE: Add regular expression comparison operators. 2019-01-07 19:38:25 -06:00
e46496c666 FEATURE: Add a reduce operator for lists and tuples.
fixes #19
fixes #21
2019-01-06 20:57:37 -06:00
a8c4ce1157 FEATURE: Allow map and filter on tuples. 2019-01-06 16:35:35 -06:00
ef01f166b2 REFACTOR: Add a little more abstraction for map and filter.
* Clearer and easier to follow code.
* Smaller functions.
* Easier to add future functionality.
2019-01-06 15:45:00 -06:00
dbadfa1c4c FEATURE: Suppport quoting self and env when we need them as tuple fields. 2019-01-06 14:28:29 -06:00
47163ef010 DOC: Fix docstring for registry new constructors. 2019-01-05 15:51:59 -06:00
2c3f9c7b8f Add base64 as an importer type aside from string. 2019-01-05 14:33:12 -06:00
e2f639a440 REFACTOR: unnecessary where clause. 2019-01-05 13:34:29 -06:00
7793404975 MAINT: use dyn syntax for trait objects now. 2019-01-05 13:27:51 -06:00
8aa47282cd DOCS: Fix some reference links. 2019-01-04 10:16:57 -06:00
a830047784 FEATURE: Add include as a string functionality.
Includes happy path tests for including a string.

fixes #15
2019-01-04 10:03:50 -06:00
59343d71d5 FEATURE: add a conatins operator
Adds the `in` operator that checks for fields in tuples and
elements in a list.

Fixes: #12
2019-01-03 11:42:11 -06:00
b24980bd1f MAINT: Doc fixes. 2019-01-03 10:20:59 -06:00
9ec73868b5 FEATURE: evaluate dot selectors as a binary operator now.
Also fixed a precedence bug in our parser.
2019-01-02 16:57:55 -06:00
a028960a43 REFACTOR/FEATURE: Treat selectors as an operator. 2018-12-31 17:31:34 -06:00
fb292b4684 REFACTOR: Unify the Binary Operator AST data structures. 2018-12-31 17:24:07 -06:00
2b7c8e65f8 REFACTOR: Better scope handling. 2018-12-31 17:13:58 -06:00
2c9abddb61 REFACTOR: normalize eval method naming for values. 2018-12-31 11:08:39 -06:00
05aa57ae7f REFACTOR: Builder => FileBuilder 2018-12-31 11:08:32 -06:00
a997b7b513 FEATURE: Add a subcommand to describe the ucg environment variables.
Also update documentation with help output.
2018-12-14 16:46:15 -06:00
821f1e9fb2 MAINT: Cleanup
TODO and FIXME removals.
Replaced unnecessary alt_peek! macro.
Renamed some types for clarity.
2018-12-14 16:01:17 -06:00
d26050cbbb MAINT: formatting using cargo fmt. 2018-12-13 19:12:44 -06:00
2b47ca8617 FEATURE: Use UCG_IMPORT_PATH to identify the import paths.
fixes #9
2018-12-13 19:03:22 -06:00
f26e26d2ad FEATURE: Support search paths for import statements.
A step toward #9

Adds builder support. We do not yet wire in the import paths.
2018-12-13 18:29:41 -06:00
0a09f26aad FEATURE: Add xml namespace support. 2018-12-12 20:26:19 -06:00
3d017a76da FEATURE: Initial xml export via a DSL. 2018-12-12 19:28:14 -06:00
b91fe1550b FEATURE: XML output using a dsl to describe the DOM 2018-12-12 19:28:14 -06:00
2a99bbb33a REFACTOR: rename macro now that nom is no longer used. 2018-12-12 19:18:37 -06:00
aab89f2d1a MAINT: Removed debug print statements. 2018-12-12 19:05:20 -06:00