-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Skema Docs CAST Development Notes (#736)
## Summary of Changes This PR makes a small modification to the development notes that live in the skema docs website. It adds a new small section detailing notes on how to use Var and Name constructs. More things related to CAST development will be added to this section when the need arises. Resolves #733
- Loading branch information
1 parent
398bfdf
commit 3e38c48
Showing
2 changed files
with
10 additions
and
0 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
## CAST FrontEnd Generation Notes | ||
### Using Var vs Name nodes | ||
Currently in the CAST generation we have a convention on when to use Var and Name nodes. | ||
The GroMEt generation depends on these being conistent, otherwise there will be errors in the generation. | ||
In the future this convention might change, or be eliminated altogether, but for now this is the current set of rules. | ||
|
||
- If the variable in question is being stored into (i.e. as the result of an assignment), then we use Var. Even if it's a variable that has already been defined. | ||
- If the variable in question is being read from (i.e. being used in an expression), then we use Name. | ||
- Whenever we're creating a function call Call() node, the name of the function is specified using the Name node. |
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