From 03f1401f144d5dc1d435b231ff0a9eb6c121a5db Mon Sep 17 00:00:00 2001 From: wpbonelli Date: Wed, 4 Sep 2024 20:41:41 -0400 Subject: [PATCH] remove .lark files for now --- flopy4/lark/keys.lark | 1 - flopy4/lark/mf6.lark | 61 ------------------------------------------- 2 files changed, 62 deletions(-) delete mode 100644 flopy4/lark/keys.lark delete mode 100644 flopy4/lark/mf6.lark diff --git a/flopy4/lark/keys.lark b/flopy4/lark/keys.lark deleted file mode 100644 index 86a6b4e..0000000 --- a/flopy4/lark/keys.lark +++ /dev/null @@ -1 +0,0 @@ -KEYS: "K"|"I"|"D"|"S"|"F"|"A" \ No newline at end of file diff --git a/flopy4/lark/mf6.lark b/flopy4/lark/mf6.lark deleted file mode 100644 index 09c140b..0000000 --- a/flopy4/lark/mf6.lark +++ /dev/null @@ -1,61 +0,0 @@ -?start: _NL* _item* -_item: (block | COMMENT) _NL+ - -// block -block: _begin _NL params _end -_begin: _BEGIN name [index] -_end: _END name -name: WORD -index: INT -_BEGIN: "begin"i -_END: "end"i - -// parameter -params: (param _NL)* -param: _key [_value] -_key: KEYS -_value: NUMBER | path | string | array | list - -// string -string: WORD+ - -// file path -path: INOUT PATH -PATH: [_PATHSEP] (NON_SEPARATOR_STRING [_PATHSEP]) [NON_SEPARATOR_STRING] -_PATHSEP: "/" -INOUT: "filein"i|"fileout"i - -// array -array: constantarray | internalarray | externalarray -constantarray: "CONSTANT" NUMBER -internalarray: "INTERNAL" [factor] [iprn] (NUMBER* [_NL])* -externalarray: "OPEN/CLOSE" WORD [factor] ["binary"] [iprn] -factor: "FACTOR" NUMBER -iprn: "IPRN" INT - -// list (adapted from https://github.com/lark-parser/lark/blob/master/examples/composition/csv.lark) -list: header _NL row* -header: "#" " "? (WORD _SEPARATOR?)+ -row: (_anything _SEPARATOR?)+ _NL -_anything: INT | WORD | NON_SEPARATOR_STRING | FLOAT | SIGNED_FLOAT -NON_SEPARATOR_STRING: /[a-zA-z.;\\\/]+/ -_SEPARATOR: /[ ]+/ - | "\t" - | "," - -// newline -_NL: /(\r?\n[\t ]*)+/ - -// parameter keys file can be generated -// with the rest of the plugin interface -%import .keys.KEYS -> KEYS - -%import common.SH_COMMENT -> COMMENT -%import common.SIGNED_NUMBER -> NUMBER -%import common.SIGNED_FLOAT -%import common.INT -%import common.FLOAT -%import common.WORD -%import common.WS_INLINE - -%ignore WS_INLINE \ No newline at end of file