-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1443 from GaloisInc/T1441
Add support for literat Cryptol with RST
- Loading branch information
Showing
8 changed files
with
107 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
:load issue1441_a.rst | ||
(f1,f2,f3,f4) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Loading module Cryptol | ||
Loading module Cryptol | ||
Loading module Main | ||
(0x01, 0x02, 0x03, 0x4) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
This is an RTS document. Here is some code: | ||
|
||
.. code-block:: cryptol | ||
f1 = 0x01 | ||
Now we are back to text. Here is some more code, this one with options: | ||
|
||
.. code-block:: cryptol | ||
:linenos: | ||
f2 = 0x02 | ||
Back to text. Now two code blocks together: | ||
|
||
.. code-block:: cryptol | ||
f3 = 0x03 | ||
.. sourcecode:: cryptol | ||
:linenos: | ||
|
||
f4 = 0x4 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
:load issue1441_b.rst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
Loading module Cryptol | ||
Loading module Cryptol | ||
Loading module Main | ||
|
||
[error] at issue1441_b.rst:28:14--28:18: | ||
Type mismatch: | ||
Expected type: 4 | ||
Inferred type: 8 | ||
Context: [ERROR] _ | ||
When checking type of function argument |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
This is an RTS document. Here is some code: | ||
|
||
.. code-block:: cryptol | ||
f1 = 0x01 | ||
Now we are back to text. Here is some more code, this one with options: | ||
|
||
.. code-block:: cryptol | ||
:linenos: | ||
f2 = 0x02 | ||
Back to text. Now two code blocks together: | ||
|
||
.. code-block:: cryptol | ||
f3 = 0x03 | ||
.. code-block:: cryptol | ||
:linenos: | ||
f4 = 0x4 | ||
Now we are going to make an error and we want to get the correct location: | ||
|
||
.. code-block:: cryptol | ||
f5 = 0x1 + 0x02 |