When writing up my work plan, I came to the conclusion that "the macro language" was both clunky and an increasingly poor description of what it was, so I'm going to start calling it "DML" from now on. People can think of it as "DMF Macro Language" or "Digital Microfluidics Language", as they like.
Along with this, the board description language in #122 will be called, well, "Board Description Language" (BDL). Both of these languages should use the same lexer.
What this change means is that DMF.g4 should change to DML.g4 (and its grammar name should change). Also, the lexer grammar, pathLexer.g4 (now there's an out-of-date name!) should change to something like common.g4 or DMFCommon.g4. Finally, I need to do a global replace in dmf_lang.py to change all tokens starting with DMF to DML. (And, I guess, the file itself should change.)
In addition, I should probably do a git rename on all of the files in generated-source/antlr4 to what they will become so that when I change the grammar, git will pick this up as a move rather than just as new files to check in. This will keep the old files from littering peoples directories.
Migrated from internal repository. Originally created by @EvanKirshenbaum on Mar 29, 2023 at 11:00 AM PDT. Closed on Aug 14, 2023 at 12:48 PM PDT.
When writing up my work plan, I came to the conclusion that "the macro language" was both clunky and an increasingly poor description of what it was, so I'm going to start calling it "DML" from now on. People can think of it as "DMF Macro Language" or "Digital Microfluidics Language", as they like.
Along with this, the board description language in #122 will be called, well, "Board Description Language" (BDL). Both of these languages should use the same lexer.
What this change means is that
DMF.g4
should change toDML.g4
(and its grammar name should change). Also, the lexer grammar,pathLexer.g4
(now there's an out-of-date name!) should change to something likecommon.g4
orDMFCommon.g4
. Finally, I need to do a global replace indmf_lang.py
to change all tokens starting withDMF
toDML
. (And, I guess, the file itself should change.)In addition, I should probably do a
git rename
on all of the files ingenerated-source/antlr4
to what they will become so that when I change the grammar,git
will pick this up as a move rather than just as new files to check in. This will keep the old files from littering peoples directories.Migrated from internal repository. Originally created by @EvanKirshenbaum on Mar 29, 2023 at 11:00 AM PDT. Closed on Aug 14, 2023 at 12:48 PM PDT.