Oleg-N-Cher / OfrontPlus

Oberon family of languages to C translator for ARM, x64 and x86 architectures
Other
55 stars 11 forks source link

A special case of (*@ comment *) for inserting a piece of raw source #83

Closed Oleg-N-Cher closed 3 years ago

Oleg-N-Cher commented 4 years ago
PROCEDURE Code;
BEGIN
(*@
    __asm
        LD A, B
    __endadm;
*)
END Code;
static void Mod_Code (void)
{
    __asm
        LD A, B
    __endadm;
}

For this purpose, the symbol scanner was modified and a special Nraw operation was introduced. The solution still requires improvement for insertions a raw code into different parts of a module.