-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: move compile package source files into directories (#195)
Fixes #194
- Loading branch information
1 parent
b37b608
commit 272e97f
Showing
20 changed files
with
109 additions
and
87 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
packages/compile/src/Helpers.js → packages/compile/src/_shared/helpers.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
packages/compile/src/ReadDat.js → packages/compile/src/_shared/read-dat.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
packages/compile/src/Subscript.js → packages/compile/src/_shared/subscript.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 7 additions & 5 deletions
12
packages/compile/src/CodeGen.js → packages/compile/src/generate/code-gen.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/compile/src/LoopIndexVars.js → ...s/compile/src/generate/loop-index-vars.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 5 additions & 4 deletions
9
packages/compile/src/ModelLHSReader.js → .../compile/src/generate/model-lhs-reader.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
// Copyright (c) 2022 Climate Interactive / New Venture Fund | ||
|
||
export { generateCode } from './CodeGen.js' | ||
export { parseAndGenerate, printNames } from './Entry.js' | ||
export { canonicalName } from './Helpers.js' | ||
export { parseModel } from './Parser.js' | ||
export { preprocessModel } from './Preprocessor.js' | ||
export { readDat } from './ReadDat.js' | ||
export { canonicalName } from './_shared/helpers.js' | ||
export { readDat } from './_shared/read-dat.js' | ||
export { preprocessModel } from './preprocess/preprocessor.js' | ||
export { parseModel } from './parse/parser.js' | ||
export { generateCode } from './generate/code-gen.js' | ||
export { parseAndGenerate, printNames } from './parse-and-generate.js' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 5 additions & 3 deletions
8
packages/compile/src/ExprReader.js → packages/compile/src/model/expr-reader.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
10 changes: 6 additions & 4 deletions
10
packages/compile/src/VarNameReader.js → ...ages/compile/src/model/var-name-reader.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 14 additions & 5 deletions
19
packages/compile/src/VariableReader.js → ...ages/compile/src/model/variable-reader.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
packages/compile/src/Preprocessor.js → ...es/compile/src/preprocess/preprocessor.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters