Last active
May 23, 2018 18:42
-
-
Save odanoburu/d4ddb0919b63facaa3376366a0946e64 to your computer and use it in GitHub Desktop.
Revisions
-
odanoburu revised this gist
May 23, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,6 @@ resource PhonoPor = open Prelude in { -- the implementation is wrong, the point is the use of `pre` oper a : pattern Str = #("a") ; o : pattern Str = #("o") ; @@ -9,7 +10,6 @@ resource PhonoPor = open Prelude in { elisEm = pre {"em" ; "na" / "a" ; "no" / "o"} ; but this works: --} elisEm = pre {"em" ; "na" / a ; "no" / o} ; {-- this works elisEm = pre { "a" => "na" ; -
odanoburu revised this gist
May 23, 2018 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ resource PhonoPor = open Prelude in { oper a : pattern Str = #("a") ; @@ -9,6 +9,7 @@ resource PhonoPor2 = open Prelude in { elisEm = pre {"em" ; "na" / "a" ; "no" / "o"} ; but this works: --} elisEm = pre {"em" ; "na" / a ; "no" / o} ; {-- this works elisEm = pre { "a" => "na" ; -
odanoburu created this gist
May 23, 2018 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,25 @@ resource PhonoPor2 = open Prelude in { oper a : pattern Str = #("a") ; o : pattern Str = #("o") ; elisEm : Str ; {-- doesn't work, complains about "a" not being a pattern elisEm = pre {"em" ; "na" / "a" ; "no" / "o"} ; but this works: --} elisEm = pre {"em" ; "na" / a ; "no" / o} ; {-- this works elisEm = pre { "a" => "na" ; "o" => "no" ; _ => "em" } ; -- and so does this elisEm = pre { a => "na" ; o => "no" ; _ => "em" } ; --} } ;