Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Source file error_messages.ml
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192(* This file was auto-generated based on "error_messages.txt". *)(* Please note that the function [message] can raise [Not_found]. *)letmessage=funs->matchswith|67|91|65|77|97->"Anonymous predicate declaration expected.\nExamples:\n(pred)\n(pred tm -> ty)\n(func tm -> ty)\n(func)\n.\nExamples (legacy syntax):\n(pred i:ty, o:ty)\n(func i:ty, o:ty)\n"|552->"You cannot ascribe a type on the head predicate.\n"|306|305|143|144|145|146|218|312|313|62->"Illformed type cast.\nExamples:\n(x : ty)\npi x : ty \\ t\nlam (x : ty \\ t)\n"|4|60|102|103|106|110|113|114|118|119|510|511|535|536->"Illformed pi or sigma.\nExamples:\npi X\\ p X\npi X Y Z\\ p X, q Y Z\nsigma X\\ p X\nsigma X Y Z\\ p X, q Y Z\n"|489|423|424|426->"Mixfix declaration expected (Teyjus compatibility, ignored by Elpi).\nExamples:\ninfixl and 30.\ninfixr ++ 45.\nprefix - 12.\n"|365|366->"Useonly directive expected (Teyjus compatibility, ignored by Elpi).\nExamples:\nuseonly foo.\nuseonly foo, bar.\n"|369|472->"Closed directive expected (Teyjus compatibility, ignored by Elpi).\nExamples:\nclosed foo.\nclosed foo, bar.\n"|408->"Local kind declaration expected (Teyjus compatibility, ignored by Elpi).\nExamples:\nlocalkind foo.\nlocalkind foo, bar.\n"|379|402|487->"Module/Signature header expected (Teyjus compatibility, ignored by Elpi).\nExamples:\nmodule foo.\nsig bar.\n"|430|429->"Definition export directive expected (Teyjus compatibility, ignored by Elpi).\nExamples:\nexportdef foo, bar.\nexportdef foo (term -> term).\n"|543|544|87|68|545|85|94|95|547|548|89|90|481|549->"Predicate declaration expected.\nExamples:\nfunc append list A, list A -> list A.\npred appendR -> list A, list A, list A.\nfunc map list A, (func A -> B) -> list B.\nfunc if (pred), (func), (func).\nfunc intdiv int, int -> int.. .\n.\nExamples (legacy syntax):\npred append i:list A, i:list A, o:list A.\npred append i:list A i:list A o:list A. % optional comma\npred map i:list A, i:(pred i:A, o:B), o:list B.\n"|497->"External declaration expected. Examples:\nexternal type foo term -> prop.\nexternal pred foo i:term.\n"|433|438|435|436->"Constraint Handling Rule header expected. Examples:\nconstraint foo {\nconstraint foo bar {\n"|416|368|418|419|417->"Kind declaration expected. Examples:\nkind term type.\nkind list type -> type.\n"|410|411|413->"Local symbol declaration expected. Examples:\nlocal foo.\nlocal foo, bar.\nlocal foo (term -> term).\n"|399|400->"Namespace header expected. Examples:\nnamespace foo {\n"|381|383|385|386|387|388|389|391|392|393->"Shortening directive expected. Examples:\nshorten foo.{ bar }.\nshorten foo.{ bar , baz }.\nshorten foo.{ bar , baz. { qux , dim } }.\n"|371|372|107|377|476|373|374->"Type abbreviation expected. Examples:\ntypeabbrev context (list term).\ntypeabbrev (two A) (pair A A).\n"|128|117|292|281|217|223->"List expected. Examples:\n[ this , that | More ].\n[ Head | Tail ].\n"|624|629|10|628->"Malformed accumulate. Examples:\naccumulate foo.\naccumulate foo, bar.\naccumulate \"foo/bar\".\n"|514|513|495|520|524|525|529|530|532|517|518|515->"Malformed CHR rule declaration. Examples:\nrule (match this).\nrule (match this) \\ (remove that).\nrule (match this) \\ (remove that) | (only when).\nrule (match this) \\ (remove that) | (only when) <=> (add this).\nrule (E :> Ctx ?- match this goal).\n"|498|499|478|505|504|502|501->"Malformed type declaration. Examples:\ntype app tm -> tm -> tm.\ntype lam (tm -> tm) -> tm.\ntype (++) list A -> list A -> list A.\nsymbol app : tm -> tm -> tm.\n"|469|470->"Malformed 'external' attribute. Example:\n:external pred\n"|464|466|445->"Malformed grafting attribute. Example:\n:before \"some name\"\n:after \"some other name\"\n:replace \"some other name\"\n:remove \"some other name\"\n"|460->"Malformed 'if' attribute. Example:\n:if \"VARIABLE\"\n"|450|451|458->"Malformed 'index' attribute. Example:\n:index(1 _ 1)\n"|448->"Malformed 'name' attribute. Example:\n:name \"name of the clause\"\n"|441|443|455->"Attribute expected. Examples:\n:name \"some name\"\n:index (_ 1 1)\n"|404|405|406|407->"Malformed macro declaration. Example:\nmacro @foo X Y :- p X => q Y.\n"|360->"Prefix symbol expected.\n"|357->"Postifx symbol expected.\n"|323->"Infix symbol expected.\n"|49->"Right parenthesis ')' expected.\n"|0|111|112->"Term expected.\n"|46->"Malformed as binding. Examples:\n(f X as Y)\n([_,_|_] as Y)\n"|302->"Mixfix symbol or term expected.\n"|556|558|578|580|560|582|585|587|589|591|593|595|597|599|601|562|564|566|576|605|607|613|615|619|621|538|539|228|250|232|262|230|236|246|252|264|234|238|266|270|242|268|272|240|244|260|276|226|300|131|309|319|212|166|182|190|194|162|174|186|156|160|188|192|164|124|127|148|172|152|134|142|140|184|150|158|214|168|198|202|206|208|280|284|289|293|542|303|311|540|170|176|178|180|196|248|254|256|258|274|282|568|570|572|574|603|204|617|317|315|100|104|221|99|553|61|290|129|215|219|220|210|286|611|213|105|70|73|74|75|81|506->"Term expected, got keyword.\n"|555->"Unexpected keyword.\n"|363|491->"Unexpected start of program clause or declaration.\n"|171|159|191|187|163|193|161|157|151|183|149|181|575|584|577|249|579|559|581|586|588|590|592|594|596|598|600|239|271|241|269|265|237|233|263|235|229|261|231|155|185|612|561|563|565|604|606|614|618|620|557|267|251|245|147|167|173|189|165|197|201|205|207|211|227|243|259|275|279|283|288|308|295|222|169|175|177|179|195|247|253|255|257|273|567|569|571|573|602|203|616|209|285|610|71|609|608|278|277|200|199->"This infix operator expects a right hand side.\n"|130|541|123->"This prefix operator expects an argument.\n"|_->raiseNot_found