Closed breck7 closed 3 years ago
For tiny DSLs, what if we had grammar up top, data below.
Example:
grammar productsNode root inScope productNode anyCell folderCell enum treeComponentFramework/sweepercraft/ treeComponentFramework targetCell enum browser nodejs productNode inScope idNode outputFileNameNode folderNode filesNode targetNode exportClassesNode idNode cells anyCell outputFileNameNode cells anyCell folderNode cells folderCell filesNode catchAllCellType anyCell targetNode cells targetCell exportClassesNode cells anyCell anyCell anyCell data product id SweeperCraft outputFileName SweeperCraft.browser.js folder treeComponentFramework/sweepercraft/ files treeComponentFramework/sweepercraft/SweeperCraft.ts target browser product target browser id TreeComponentFramework.Browser outputFileName TreeComponentFramework.browser.js folder treeComponentFramework files worldWideTypes/treeNotationTypes.ts treeComponentFramework/Willow.ts treeComponentFramework/TreeComponentFramework.ts product target nodejs id TreeComponentFramework.Node outputFileName TreeComponentFramework.node.js folder treeComponentFramework files worldWideTypes/treeNotationTypes.ts treeComponentFramework/Willow.ts treeComponentFramework/TreeComponentFramework.ts exportClasses AbstractTreeComponentRootNode AbstractTreeComponent AbstractCommander
not obviously a bad idea but more important things to do first.
For tiny DSLs, what if we had grammar up top, data below.
Example: