diff --git a/src/language/code_generator.cmake b/src/language/code_generator.cmake index a3dea0767..822030c1d 100644 --- a/src/language/code_generator.cmake +++ b/src/language/code_generator.cmake @@ -114,7 +114,7 @@ set(AST_GENERATED_SOURCES ${PROJECT_BINARY_DIR}/src/ast/linear_block.hpp ${PROJECT_BINARY_DIR}/src/ast/local_list_statement.hpp ${PROJECT_BINARY_DIR}/src/ast/local_var.hpp - ${PROJECT_BINARY_DIR}/src/ast/lon_difuse.hpp + ${PROJECT_BINARY_DIR}/src/ast/lon_diffuse.hpp ${PROJECT_BINARY_DIR}/src/ast/model.hpp ${PROJECT_BINARY_DIR}/src/ast/mutex_lock.hpp ${PROJECT_BINARY_DIR}/src/ast/mutex_unlock.hpp diff --git a/src/language/nmodl.yaml b/src/language/nmodl.yaml index 35f70602a..dbfbaea6e 100644 --- a/src/language/nmodl.yaml +++ b/src/language/nmodl.yaml @@ -1546,21 +1546,21 @@ separator: " " brief: "Represent COMPARTMENT statement in NMODL" - - LonDifuse: + - LonDiffuse: nmodl: LONGITUDINAL_DIFFUSION members: - - name: - brief: "TODO" + - index_name: + brief: "Index variable name" type: Name optional: true prefix: {value: " "} suffix: {value: ","} - - expression: - brief: "TODO" + - rate: + brief: "Diffusion coefficient/rate" type: Expression prefix: {value: " "} - - names: - brief: "TODO" + - species: + brief: "Names of the diffusing species" type: Name vector: true prefix: {value: " {"} diff --git a/src/parser/nmodl.yy b/src/parser/nmodl.yy index c20aca8e9..3ce4704f8 100644 --- a/src/parser/nmodl.yy +++ b/src/parser/nmodl.yy @@ -268,7 +268,7 @@ %type conserve %type react %type compartment -%type longitudinal_diffusion +%type longitudinal_diffusion %type name_list %type unit_block_body %type unit_definition @@ -1723,11 +1723,11 @@ compartment : COMPARTMENT NAME_PTR "," expression "{" name_list "}" longitudinal_diffusion : LONGDIFUS NAME_PTR "," expression "{" name_list "}" { - $$ = new ast::LonDifuse($2, $4, $6); + $$ = new ast::LonDiffuse($2, $4, $6); } | LONGDIFUS expression "{" name_list "}" { - $$ = new ast::LonDifuse(NULL, $2, $4); + $$ = new ast::LonDiffuse(NULL, $2, $4); } ;