The process of scanning, parsing and compiling ABAP sources?

This is a pretty technical question about the compilation process of ABAP code.

I know that there are ABAP analyzer and scanner classes that actually call the C kernel functions to do the real work. Then, code completion is performed with a transaction that returns and prints the AST (abstract source tree) of the program as an ABAP or XML list.

Now my question is: is it possible to “skip” the source of ABAP code and directly produce such AST in other ways than writing, and then perform ABAP in SE80 or so, and give it some function that compiles and executes it as if it were written and parsed from ABAP code?

That is, can I skip scanning and parsing sources and directly give AST to the compiler? If so, in what format? ABAP lists look more like a print format, not the same as, for example, Lisp lists enclosed in parentheses.

+4
source share
1 answer

Unfortunately, the ABAP compiler does not use AST to generate VM code. The ABAP compiler runs sequentially and converts the operator per operator (that is, everything that is between the two "."), Into one or more virtual machine operation codes.

, SYNT, . RSLOAD00, ABAP VM, .

, .

ABAP, ABAP.

+2

Source: https://habr.com/ru/post/1622459/


All Articles