Preprocessor 

DarkMachine Compiler features a Case-Sensitive Mass Text Replacement Preprocessor that performs text replacement on *.dm files, outputing a intermediate *.dmc files prior to compilation.

The Preprocessor is very simple in its operation. It loads in a csv (comma delimited) file: dmcvm_Preprocessor.csv creating a list from two columns separated by commas that tells the Preprocessor what text to replace from and to respectively.

From
(Custom Syntax, Consts, etc)
To
(DarkMachine Syntax)
1

true

1

2

false

0

3

True

1

4

False

0

5

PI

3.14

6

?(

Print(

You can modify these files how you see fit, but, remember that the Preprocessor will output DarkMachine *.dmc file to be compiled. Caution is advised in using the Preprocessor because it merely performs text replacements. There is no Syntax Checking and any text defined in .csv file, they are replaced in the *.dm file processing. This could adversly effect *.dmc code output , producing undesireable effects and syntax errors.

When using *.dm files the Preprocessor will overwrite *.dmc of the same filename. To avoid this, decide to use the *.dm or *.dmc extention exclusively with each filename.

Alternatively, you can script Constants which are used in the same manner as dmcvm_Preprocessor.csv file.