Commit Graph

665 Commits

Author SHA1 Message Date
Trevor Elliott
f06b4deaea Update 226 output, as it uses :browse 2015-06-09 14:32:17 -07:00
Trevor Elliott
7e8940e9a8 Name changes in debug output 2015-06-09 14:27:43 -07:00
Trevor Elliott
9305e769d4 Properly resolve constraint fixity 2015-06-09 14:18:25 -07:00
Trevor Elliott
91616d93f6 Fix PP instance for infix type functions 2015-06-09 10:44:58 -07:00
Trevor Elliott
3fc9d66fc1 Change the precedence of xor 2015-06-09 09:35:35 -07:00
Trevor Elliott
e119b72efd More fixity, and add back special error messages 2015-06-08 17:54:02 -07:00
Trevor Elliott
0eefd18437 More consistent output in the REPL 2015-06-08 17:36:41 -07:00
Trevor Elliott
4b323b8446 Remove primitives 2015-06-08 16:00:14 -07:00
Trevor Elliott
ef3ac8cf4b Allow parenthesized operators with :help 2015-06-06 12:53:11 -07:00
Trevor Elliott
8eb401e548 Remove primitive type operators from the parser 2015-06-06 12:31:03 -07:00
Trevor Elliott
58e63fdd38 Begin work on fixity resolution at the type level 2015-06-05 23:36:51 -07:00
Trevor Elliott
745ea639af Start migrating primitives to the prelude 2015-06-05 15:47:12 -07:00
Trevor Elliott
016aeacfab Merge remote-tracking branch 'origin/master' into wip/prim-decls 2015-06-05 14:37:34 -07:00
Trevor Elliott
7eb7c93985 Have :help use the doc string, instead of built-in docs 2015-06-05 14:37:25 -07:00
Dylan McNamee
c27c91af3a fixed negative stepped sequence example (issue #234) in ProgrammingCryptol 2015-06-05 12:02:16 -07:00
Trevor Elliott
a736f740f9 Parse doc strings, and attach them to declarations 2015-06-04 18:35:12 -07:00
Trevor Elliott
b4c980bce0 Add fixity information to primitive bindings 2015-06-04 10:54:05 -07:00
Trevor Elliott
6bdbe52673 Add another test for unary operators 2015-06-04 10:37:28 -07:00
Trevor Elliott
2f45ce1a38 Fix the precedence of (-/~) again
Fixes #230
2015-06-04 10:32:08 -07:00
Trevor Elliott
b96859ba5f Implement + as a primitive in the prelude 2015-06-03 22:29:36 -07:00
Trevor Elliott
b1bbd41f83 Plumb through primitive declarations 2015-06-03 18:56:43 -07:00
Trevor Elliott
e8e5e30557 Fix parsing of unary operators 2015-06-03 17:50:22 -07:00
Trevor Elliott
e4258b4d2c Add a regression test for xor precedence 2015-06-03 15:36:18 -07:00
Trevor Elliott
3fc361cfb4 Fix the precedence of xor again 2015-06-03 15:28:03 -07:00
Iavor S. Diatchki
50866f5cf2 Don't generalize over variables that got defined
Fixes #229
2015-06-03 15:00:24 -07:00
Iavor S. Diatchki
55e464f7d6 Just wibbles 2015-06-03 14:58:44 -07:00
Aaron Tomb
da722c7076 Fix build with GHC 7.8 2015-06-03 12:52:28 -07:00
Trevor Elliott
ae6b5dc3e8 Add support for user-defined infix operators
Squashed commit of the following:

commit 9f03b7cd1a1f169ea192d735890fd6a3503ecb39
Author: Trevor Elliott <trevor@galois.com>
Date:   Wed Jun 3 11:40:27 2015 -0700

    Add a test for user-defined infix operators

commit 31656a4640e8189b880fa1ce39779c07872ebe18
Author: Trevor Elliott <trevor@galois.com>
Date:   Wed Jun 3 11:39:43 2015 -0700

    Forgot to initialize some fields in the parser

commit 73bcb2e5961691f2258f5a7a12ee2dc92d1a1ad3
Author: Trevor Elliott <trevor@galois.com>
Date:   Wed Jun 3 11:20:40 2015 -0700

    Fix unnecessary panics in the renamer

commit 03cd8130901fb7aeb12d41cc03ce970ce6571423
Author: Trevor Elliott <trevor@galois.com>
Date:   Mon Jun 1 01:29:36 2015 -0700

    Remove a debug print

commit 2934a56b31d51ac971204d3fea9f62bf8829573d
Author: Trevor Elliott <trevor@galois.com>
Date:   Mon Jun 1 01:26:32 2015 -0700

    User-defined operators

commit 47f4b37fc75accaf0284addc2382c341167b8b6b
Author: Trevor Elliott <trevor@galois.com>
Date:   Sun May 31 23:44:51 2015 -0700

    Parse signatures for infix operators

commit a1a11705c2eec6e669159756de2eb2cb19bcfa83
Author: Trevor Elliott <trevor@galois.com>
Date:   Sun May 31 23:28:56 2015 -0700

    Plumb fixity information through

commit 56134ac0d9fb919f280dabfcdab6506195816340
Author: Trevor Elliott <trevor@galois.com>
Date:   Sun May 31 22:03:55 2015 -0700

    Parse fixity declarations

commit f2db0ad5d47d478799dabf03a6cad9be7aec2191
Author: Trevor Elliott <trevor@galois.com>
Date:   Fri May 29 16:00:57 2015 -0700

    Update test output for location changes

commit 15949018865d3ac8efca1a081334a7213c25775c
Merge: 1bd7f16 52f3a83
Author: Trevor Elliott <trevor@galois.com>
Date:   Fri May 29 15:36:20 2015 -0700

    Merge remote-tracking branch 'origin/master' into wip/infix-operators

commit 1bd7f1602bd6bbf5693871f01ca65a4cf3ed3bf8
Author: Trevor Elliott <trevor@galois.com>
Date:   Fri May 29 15:30:14 2015 -0700

    Forgot to consider EParens in translateExprToNumT

commit d63435270d5ca5bdf37584e4781a655a685c9c3b
Author: Trevor Elliott <trevor@galois.com>
Date:   Fri May 29 15:29:47 2015 -0700

    Add | to the operator character set

commit 7be23372c4625bf20b8f8ccf94a148563417f6cb
Author: Trevor Elliott <trevor@galois.com>
Date:   Fri May 29 14:49:07 2015 -0700

    Fix the printing of #Uniq variables

commit f9110e159aa0c3ae7450fe7a4db2a8d275d9bc1a
Author: Trevor Elliott <trevor@galois.com>
Date:   Thu May 28 17:04:26 2015 -0700

    Fix some failing tests

commit 0582fd08cc402c7bfd2de2c02df14fa77906e37e
Author: Trevor Elliott <trevor@galois.com>
Date:   Thu May 28 16:12:18 2015 -0700

    Remove more primitives from the parser

commit f5dafd1ea7954b64f7949c754e0c94abd2598679
Author: Trevor Elliott <trevor@galois.com>
Date:   Wed May 27 18:02:52 2015 -0700

    Do fixity resolution during renaming
2015-06-03 11:42:33 -07:00
Adam C. Foltzer
28960c1b68 fixed replicateV during symbolic simulation
Previously this function would always produce a sequence with the
"isWord" bit set to False. It now takes a type argument so that it can
properly set it to True when the elements are Bits.
2015-06-01 15:37:51 -07:00
Iavor S. Diatchki
d5988338be Wibbles 2015-05-29 10:18:03 -07:00
Iavor S. Diatchki
cd67c61b35 Propagate constants in comparisons 2015-05-29 10:14:15 -07:00
Iavor S. Diatchki
b86e4bba66 Add --rewrite-divk to test 2015-05-29 10:13:57 -07:00
Iavor S. Diatchki
52f3a836b4 Fix test output issues214.
We get one warning per enumeration which seems reasonable.
2015-05-27 15:35:24 -07:00
Iavor S. Diatchki
cd2f4bfc7a Put cast under the quantifiers, fixes test05 in mono-binds 2015-05-27 15:32:17 -07:00
Iavor S. Diatchki
2733102c25 Stick with integers, otherwise we overflow for large lists
Fixes #226
2015-05-27 15:04:17 -07:00
Iavor S. Diatchki
747ad08e2a Fix broken rewrite 2015-05-27 11:56:20 -07:00
Iavor S. Diatchki
9faa70631e Merge branch 'master' of github.com:GaloisInc/cryptol 2015-05-27 11:48:38 -07:00
Iavor S. Diatchki
95c4c8c1d5 More constant propagation when solving 2015-05-27 11:48:30 -07:00
Iavor S. Diatchki
6912c55e22 Functions for computing roots 2015-05-27 11:48:00 -07:00
Trevor Elliott
ecb8ea2aa6 Use Text consistently in the parser interface 2015-05-27 10:42:31 -07:00
Trevor Elliott
c04446b53a Adds more support for UTF-8 in identifiers
Also:

- Improves the `lexical error` message, changing it to `unrecognized
  character`, and only displaying the one character that caused the
  problem.

- Adds more relevant text when showing a lexical error, which should
  address #219

- Switches parser to operate over lazy `Data.Text` rather than `String`
2015-05-26 14:29:36 -07:00
Adam C. Foltzer
1ae907f5d9 version bump to 2.3.0; fix warnings 2015-05-26 14:04:31 -07:00
Trevor Elliott
86ca669154 Fix 7.10/7.8 compatibility with use of mempty 2015-05-22 10:46:49 -07:00
Trevor Elliott
5e92b00789 Fix #177
Add a name mapping environment to the pretty printer to control how qualified
names get printed.
2015-05-21 23:17:15 -07:00
Trevor Elliott
ace54c884f Add a naming environment to the pretty printer 2015-05-21 23:13:04 -07:00
Iavor S. Diatchki
8bbc6883eb Add option to run-core lint. 2015-05-20 15:26:17 -07:00
Iavor S. Diatchki
bc1dd56720 Import applicative qualified, to make things work on 7.8 2015-05-20 11:18:08 -07:00
Iavor S. Diatchki
6249563fd8 First stab at type-checker sanity checking. 2015-05-19 14:25:56 -07:00
Iavor S. Diatchki
8900a50449 Remember to insert casts when simplifying; don't mess with user-supplied signatures. 2015-05-18 14:04:38 -07:00
Adam C. Foltzer
f822f1104e add announcement venues 2015-05-15 15:32:31 -07:00