usagi-coffee / tree-sitter-abl

OpenEdge ABL grammar for tree-sitter
MIT License
7 stars 1 forks source link

Preprocessor directives are raising errors #88

Open eglekaz opened 1 month ago

eglekaz commented 1 month ago

Here are some examples:

&IF LOOKUP("{&OPSYS}","MSDOS,WIN32":U) > 0 &THEN
    &SCOPED-DEFINE SLASH ~~~\
&ELSE
    &SCOPED-DEFINE SLASH /
&ENDIF
&GLOBAL Main_index 49153
&GLOBAL-DEFINE MAX-EXPENSE 5000

Also in include files:

&if '{&name}' = '' &then
    &scoped-define name ttTable
&endif

define {&visibility} temp-table {&name} no-undo
  field something as int
  field something2 as char
  index something as primary unique something
.

Documentation: https://docs.progress.com/bundle/openedge-abl-portable-applications-117/page/Using-preprocessor-directives.html