File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
liquidjava-verifier/src/main/java/liquidjava/rj_language/parsing Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ public static GhostDTO getGhostDeclaration(String s) throws LJError {
3535 ParseTree rc = compile (s );
3636 GhostDTO g = GhostVisitor .getGhostDecl (rc );
3737 if (g == null )
38- throw new SyntaxError ("Invalid ghost declaration, e.g. \" int size\" " , s );
38+ throw new SyntaxError ("Invalid ghost declaration, e.g. @Ghost( \" int size\" ) " , s );
3939 return g ;
4040 }
4141
@@ -56,14 +56,14 @@ public static AliasDTO getAliasDeclaration(String s) throws LJError {
5656 AliasVisitor av = new AliasVisitor (input );
5757 AliasDTO alias = av .getAlias (rc );
5858 if (alias == null )
59- throw new SyntaxError ("Invalid alias definition, e.g. \" Positive(int v) { v >= 0 }\" " , s );
59+ throw new SyntaxError ("Invalid alias definition, e.g. @RefinementAlias( \" Positive(int v) { v >= 0 }\" ) " , s );
6060 return alias ;
6161 }
6262
6363 private static ParseTree compile (String toParse ) throws LJError {
6464 Optional <String > s = getErrors (toParse );
6565 if (s .isPresent ())
66- throw new SyntaxError ("Invalid refinement expression, e.g. \" v > 0 \" " , toParse );
66+ throw new SyntaxError ("Invalid refinement expression, expected a logical predicate " , toParse );
6767
6868 CodePointCharStream input = CharStreams .fromString (toParse );
6969 RJErrorListener err = new RJErrorListener ();
You can’t perform that action at this time.
0 commit comments