How to Create Custom Syntaxes



  • Erik Knutsson

    Found an error in the article.
    "The syntax can also be specified on what interface it can be used, i.e. public, package, private. This is specified at the beginning of the syntax definition."

    This part should probably say something like: "The syntax does only support the public interface, i.e. package and private syntaxes are not supported".

    Currently if you try to compile "package statement mySyntax { ..." Then you get the following compile error: "only 'public' syntax is supported".
    Same if you try to make a private syntax.

    Comment actions Permalink
  • Yewsiing Choong

    Hello Erik,

    Thanks for pointing that out, we have edited the article to explain that only the public interface can be used.

    Comment actions Permalink

Please sign in to leave a comment.