Can a scala dsl be coded to issue its own specialized compilation errors? -
I have used some scala DSL, and wondering if someone is developing, he can also work for DSL-specific compilation. The idea is that there will also be a domain specific compilation error message in a domain specific language, helping the Domain Specialist fix things. Is it possible Scala?
There are useful things that can be useful; you can customize compiler errors at unsolved intervals with this help. Are there.
@Dailyon reported that if you are hacking with Scala MacOS, then This can also be helpful in this case, it allows you to restrict the use of parts of your code and generate custom error messages if someone tries to access it. c.abort ,
c.info and
c Error to get some custom error / additional information to the compiler
Comments
Post a Comment