- 18 Mar, 2015 1 commit
-
-
Kim Nguyễn authored
Improve pretty printing of Bdds and add debug directive to interactively inspect the internal representation of types.
-
- 16 Feb, 2015 2 commits
-
-
Kim Nguyễn authored
"\n" after the ;; token.
-
Kim Nguyễn authored
to use two lexers (depending on whether we are between square brackets or not) is too brittle (it crudely tries to parse ``( [whitespace] 'a [whitespace] )'' as a variable, to force the user to write the variable beetween parenthesis. However this does not scale to types with two arguments (says [ t ('a, 'b) ]). We use a simpler heuristic (with look ahead) (1) try to see if the regular expression ' (anything but ', \n)* '(anything but the first letter of an identifier) can be found. If so, we put back the lexeme in the buffer and parse it as as a string. (2) if (1) failed, try to parse it as a variable (3) if (3) failed, try to parse it again as a string. We are guaranteed to fail here but it means we have a malformed string, so we parse as a string to get a proper error message. The only thing this does not cover are cases like type t = [ 'abcd'Int ] which was tokenized before as [, 'abcd', Int, ] and is now tokenized as [, 'abcd, 'Int, ] It does not seem to be a problem in practice though (since in the code I have seen thus far, people were at least putting a space). it is easy to emmit a warning in this case, suggesting the user to add a whitespace to get the old behaviour back.
-
- 09 Sep, 2014 1 commit
-
-
Pietro Abate authored
now we can write types as type t( 'a) = <a>'a and patterns can contain type instantiations let f = fun (t('a) -> [ t('a)* ]) x -> [ x ];; let id = fun (t(Int) -> [ t(Int)* ]) x -> [ x ];; Note: parametric types must be written as "IDENT(" without space.
-
- 19 Aug, 2014 1 commit
-
-
Pietro Abate authored
-
- 23 Jul, 2014 1 commit
-
-
Pietro Abate authored
-
- 28 Jun, 2014 1 commit
-
-
Pietro Abate authored
-
- 27 Jun, 2014 2 commits
-
-
Julien Lopez authored
now as such: - ['a] is the regexp matching the type variable "a"; - ['a'] is the regexp matching the string "a"; - ['a' 'a] is the regexp matching the string "a" followed by the type variable "a"; - ['a''a] is a syntax error (a string in single quotes in a regexp MUST be followed by a character that cannot be the beginning of a name for a type variable, a blank character will do). Bug: At this point, when using CDuce at toplevel, one will have to press enter twice when typing a regexp with type variables.
-
Pietro Abate authored
-
- 26 Jun, 2014 1 commit
-
-
Pietro Abate authored
-
- 25 Jun, 2014 1 commit
-
-
Julien Lopez authored
-
- 22 Jun, 2014 1 commit
-
-
Julien Lopez authored
-
- 19 Jun, 2014 1 commit
-
-
Pietro Abate authored
-
- 11 Dec, 2013 1 commit
-
-
Pietro Abate authored
-
- 16 Jul, 2013 3 commits
-
-
Giuseppe Castagna authored
-
Giuseppe Castagna authored
-
Giuseppe Castagna authored
-
- 12 Jul, 2013 1 commit
-
-
Giuseppe Castagna authored
-
- 11 Jul, 2013 2 commits
-
-
Giuseppe Castagna authored
-
Giuseppe Castagna authored
-
- 12 Feb, 2008 1 commit
-
-
Pietro Abate authored
- add required files to build the documentation
-
- 29 Jan, 2008 1 commit
-
-
Pietro Abate authored
-
- 05 Oct, 2007 18 commits
-
-
Pietro Abate authored
Original author: afrisch Date: 2007-06-12 12:59:44+00:00
-
Pietro Abate authored
Original author: afrisch Date: 2006-10-03 09:39:58+00:00
-
Pietro Abate authored
Original author: afrisch Date: 2006-04-27 14:27:54+00:00
-
Pietro Abate authored
Original author: afrisch Date: 2006-04-24 17:00:39+00:00
-
Pietro Abate authored
Original author: afrisch Date: 2006-04-24 16:47:52+00:00
-
Pietro Abate authored
Original author: afrisch Date: 2006-04-21 15:53:56+00:00
-
Pietro Abate authored
Original author: afrisch Date: 2006-03-22 12:22:49+00:00
-
Pietro Abate authored
Original author: afrisch Date: 2006-03-17 13:27:38+00:00
-
Pietro Abate authored
[r2006-02-14 10:42:36 by afrisch] eval can now be called several times and use the toplevel environment Original author: afrisch Date: 2006-02-14 10:45:18+00:00
-
Pietro Abate authored
[r2005-11-21 13:24:34 by afrisch] Error message when using --mlstub without the built-in OCaml interface Original author: afrisch Date: 2005-11-21 13:24:34+00:00
-
Pietro Abate authored
Original author: afrisch Date: 2005-10-30 14:23:04+00:00
-
Pietro Abate authored
Original author: afrisch Date: 2005-08-11 09:30:43+00:00
-
Pietro Abate authored
Original author: afrisch Date: 2005-07-30 09:27:30+00:00
-
Pietro Abate authored
Original author: afrisch Date: 2005-07-29 10:11:37+00:00
-
Pietro Abate authored
Original author: afrisch Date: 2005-07-15 13:51:37+00:00
-
Pietro Abate authored
Original author: afrisch Date: 2005-07-12 15:37:27+00:00
-
Pietro Abate authored
Original author: afrisch Date: 2005-07-07 15:32:44+00:00
-
Pietro Abate authored
Original author: afrisch Date: 2005-07-07 13:57:18+00:00
-