HPInc / HP-Digital-Microfluidics

HP Digital Microfluidics Software Platform and Libraries
MIT License
3 stars 1 forks source link

Name macro language "DML" #261

Closed EvanKirshenbaum closed 9 months ago

EvanKirshenbaum commented 9 months ago

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.
EvanKirshenbaum commented 9 months ago

This issue was referenced by the following commit before migration:

EvanKirshenbaum commented 9 months ago

DMF.g4 is now dml.g4 and pathLexer.g4 is now commonLexer.g4. dml_lang.py is now just dml.py.

Migrated from internal repository. Originally created by @EvanKirshenbaum on Aug 14, 2023 at 12:47 PM PDT.