68 Commits

Author SHA1 Message Date
9a3bfbad02 DOCS: Document the syntax for casting. 2019-12-09 18:41:01 -06:00
a90df8a362 REFACTOR: Cleanup the syntax for the select expr
This makes it both easier to correctly write a select expression
as well as easier to parse and report syntax errors.
2019-11-02 11:01:47 -05:00
Jeremy Wall
949d468f55 DEV: Fix escaping in both strings and format strings. 2019-08-12 18:10:48 -05:00
354f072c98 DOCS: Add details about the repl to our getting started doc. 2019-06-20 19:30:20 -05:00
f349293400 FEATURE: Support a convert expression. 2019-06-20 19:28:20 -05:00
0766d8058f DEV: Stop using nested tuples in flag output.
Now that we have string manipulation facilities in the stdlib
that is a less useful and more confusing feature. This code removes
it.
2019-05-30 18:22:47 -05:00
John Franklin
53f34d1647 FIX: Added missing word and comma in docsite/site/content/reference/expressions.md. 2019-05-24 15:43:26 -05:00
ec756636b0 FEATURE: Add a TRACE pragma for assitance debugging ucg files. 2019-04-26 19:19:43 -05:00
439ebf74f3 FEATURE: Give modules a reference to self. 2019-04-24 19:13:22 -05:00
0e41a40ab3 FEATURE: Add a function to the mod binding that imports the containing package. 2019-04-16 20:09:27 -05:00
a8de207c9d DOCS: Update the docs for the testing standard lib 2019-04-09 21:18:55 -05:00
d31d5ed454 DOC: Fill out the reference overview more. 2019-03-29 12:57:26 -04:00
d3f7e49790 DOCS: Add an intro tutorial with json output. 2019-03-29 12:43:15 -04:00
ecde7f4636 DOCS: Update documentation for the select expression.
Talk about the default being optional and what will happen
the field doesn't exist and no default is specified.
2019-03-01 17:15:07 -06:00
b4497d88e9 FEATURE: Add an or operation on the maybe module type. 2019-02-28 20:59:17 -06:00
ea3f2eae5f FEATURE: Add a slice module to our lists library. 2019-02-27 19:44:54 -06:00
b334482822 DOCS: Add a precedence table to our reference. 2019-02-27 19:41:09 -06:00
f691489bf8 DOCS: A whole bunch of improvements.
* Changed the ordering so that tutorials come first.
* Added a tutorial on recursive modules.
2019-02-27 19:41:09 -06:00
7ae6955066 FEATURE: Add head and tail functions to our list library. 2019-02-27 19:41:09 -06:00
2134d79f0d DOCS: Formatting and organization changes.
Additionally:

* Added an overview
* Expanded the docs for the NULL type.
2019-02-25 19:02:23 -06:00
69b573aed5 DOCS: Update standard library documentation. 2019-02-24 08:53:48 -06:00
1604981a5c DOCS: Update the documentation with module out expressions.
issue #35
2019-02-21 20:09:47 -06:00
dd373b6680 DOCS: Add more to our comparison table. 2019-02-18 20:14:35 -06:00
d71182f017 Update to new version of generator and theme. 2019-02-18 10:35:21 -06:00
b571ead599 DOCS: Add documentation on our stdlib.
* Adds schema.ucg to our reference site.
* Adds comments to the std libs themselves.
2019-02-04 20:29:04 -06:00
3c91f48415 DOCS: Clarified the reference for assert statements. 2019-02-04 19:29:46 -06:00
39f7afa8fc DOCS: Add the not operator to our expression reference. 2019-02-01 17:20:02 -06:00
619e3d8d2e DOCS: A raft of fixes and updates to the documentation site. 2019-01-31 19:23:28 -06:00
1322378975 DOCS: Update the docs with the new functional operator syntax. 2019-01-31 16:51:00 -06:00
4d6fd87c3d FEATURE: Allow expressions for functions in reduce/map/filter. 2019-01-30 20:35:28 -06:00
7b4995607c DOCS: More clarification about parenthesized format args. 2019-01-28 21:41:34 -06:00
315fbabc3d DOCS: update the grammar and expression docs.
Adds the new form of format expressions using tuples.

Regarding Issue #23
2019-01-28 21:31:02 -06:00
44055c28e9 DOCS: Update docs with a bunch of fixes. 2019-01-24 20:07:19 -06:00
9b84444feb DOCS: Updated grammar and expression reference
`is` operator and the `fail` expression.
2019-01-19 11:47:39 -06:00
eaa3e84179 FIX: Treat is as a regular binary operator
do syntax checks post parse. Also to avoid collisions with
keywords require quoting the types.
2019-01-19 10:49:33 -06:00
1dba5f66ce FEATURE: map, filter, and reduce over lists. 2019-01-18 20:01:08 -06:00
25d84a771e FEATURE: Add the is operator
This operator tests that something is of a certain base type.
2019-01-18 18:47:11 -06:00
77075d6c79 DOCS: Added boolean expressions and TODO items. 2019-01-17 19:28:41 -06:00
890387b4cc FEATURE: Macros are just an expression now.
This is a breaking change for the map, filter, and reduce expressions
but happily a forward compatible change for macros themselves.
2019-01-16 19:27:58 -06:00
44d6247b46 DOCS: Modify the docs to reflect macros as closures. 2019-01-14 18:34:37 -06:00
924dcb40ff FEATURE: Allow people to override the descriptions
For equal and not_equal specifically.
2019-01-13 22:06:38 -06:00
17a9882f40 DOCS: Document our standard library. 2019-01-13 21:30:33 -06:00
cacb345000 DOCS: Reflect the changes in import expressions.
Update the docs to remove the import statement and add the import
expression.

adds: #28
2019-01-13 14:11:20 -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
a062332b0a DOCS: Add reduce expressions to the grammar and reference. 2019-01-06 21:04:01 -06:00
a8c4ce1157 FEATURE: Allow map and filter on tuples. 2019-01-06 16:35:35 -06:00
d40f30dcf9 DOCS: Add the list and map expressions to our grammar. 2019-01-06 14:53:03 -06:00
1b744ab883 DOCS: keep all tokens together. 2019-01-06 14:45:36 -06:00
f219b320f2 DOCS: Fix some inaccuracies in the grammar. 2019-01-06 14:30:25 -06:00