background: - there are formal languages โโfor expressing a programming language, a valid lexicon and syntax - such representations (for example, regular expression and context-free grammars) can be automatically compiled into lexicon / syntax analyzers for some programming language using some tools (for example, LEX and YACC)
questions: - Are there such formal languages โโfor defining the semantics of a programming language? - Are there compilers for automating the generation of semantic analyzer code based on these formal languages? - any resources for reading semantic analysis of source code?
Notes: - you may find my question unrealistic, its good ... Am I new to compilers? - on semantic analysis, I really want to collect the necessary information from the source code for the next steps of optimization and code generation ... this should include type / border checking ... etc.
Hope I made it clear thanks a lot in advance
source
share