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 c.abort , c.info and c Error to get some custom error / additional information to the compiler

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.

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -