You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Doesn't need to be really a separate preprocessor, can be part of parser. A "preprocess-only" option will emit source code with conditionals and includes applied, #syntax can be either kept untouched or removed.
To avoid emitting special markers for compiler (real/logical line numbers etc.), the directives can be consumed directly by compiler, inclusion will create new file context but keep same AST, conditional will skip part of source, etc.
#syntax fire 1.0 (<lang> <major>[.<minor>]) - optional declaration of language version, checked by compiler ( part only informative, <lang> <major> must be known to the compiler, otherwise it emits error or warning)
#include
#if
New idea: still textual preprocessor, but the language will be the xci-script, i.e. you can define compile-time function that can be called to generate code.
The text was updated successfully, but these errors were encountered:
Doesn't need to be really a separate preprocessor, can be part of parser. A "preprocess-only" option will emit source code with conditionals and includes applied,
#syntax
can be either kept untouched or removed.To avoid emitting special markers for compiler (real/logical line numbers etc.), the directives can be consumed directly by compiler, inclusion will create new file context but keep same AST, conditional will skip part of source, etc.
#syntax fire 1.0
(<lang> <major>[.<minor>]
) - optional declaration of language version, checked by compiler ( part only informative,<lang> <major>
must be known to the compiler, otherwise it emits error or warning)#include
#if
New idea: still textual preprocessor, but the language will be the xci-script, i.e. you can define compile-time function that can be called to generate code.
The text was updated successfully, but these errors were encountered: