java - Parsing script that contains logic to execute -


i started @ antlrv4 give ability users of application provide custom logic specific domain.

i found in many places embedding logic inside grammar bad practice. therefore, seems recommended approach walk through tree generated antlr , produce sort of object represent script execution.

does mean need handle expression evaluation, method invocation, variable handling, etc...? or there better approach such use case?

thanks, mickael

antlr 4 parser few utilities obtaining information parse trees creates. if want include expressions, methods, and/or variables in language, need implement own behavior each of these regardless of code implemented.


Comments

Popular posts from this blog

php - Submit Form Data without Reloading page -

linux - Rails running on virtual machine in Windows -

php - $params->set Array between square bracket -