Updated VFPPROD keyword to include records.

This commit is contained in:
Joakim Hove
2015-03-03 11:44:40 +01:00
parent ecb1d5bd74
commit bae2fa4b3a
2 changed files with 153 additions and 14 deletions

View File

@@ -1,17 +1,24 @@
{"name" : "VFPPROD" ,
"sections" : ["SCHEDULE"],
"size" : "UNKNOWN" ,
"items" : [{"name" : "STRING" , "value_type" : "STRING" , "size_type" : "ALL"}],
"comments" : [
"The VFPPROD/VFPINJ keywords break the keyword model in two ways: ",
" ",
" 1. The total number of records is given as an arithmetic expression involving ",
" the number of items in the first couple of records. Such dependency is not ",
" properly supported in the parser code, the support is based on the size ",
" UNKNOWN which is interpreted as continue reading records until: ",
" a) Another known keyword appears. ",
" b) EOF ",
" ",
" 2. The different records have different item definitions; we therefor do not ",
" really internalize these properly - in the deck they are just a list of ",
" strings. "]}
"records" : [
[{"name" : "TABLE" , "value_type" : "INT"},
{"name" : "DATUM_DEPTH" , "value_type" : "DOUBLE" , "dimension" : "Length"},
{"name" : "RATE_TYPE" , "value_type" : "STRING"},
{"name" : "WFR" , "value_type" : "STRING"},
{"name" : "GFR" , "value_type" : "STRING"},
{"name" : "PRESSURE_DEF" , "value_type" : "STRING" , "default" : "THP"},
{"name" : "ALQ_DEF" , "value_type" : "STRING" , "default" : "THP"},
{"name" : "UNITS" , "value_type" : "STRING"},
{"name" : "BODY_DEF" , "value_type" : "STRING" , "default" : "BHP"}],
[{"name" : "FLOW_VALUES" , "value_type" : "DOUBLE" , "dimension" : "Density", "size_type" : "ALL"}],
[{"name" : "THP_VALUES" , "value_type" : "DOUBLE" , "dimension" : "Pressure", "size_type" : "ALL"}],
[{"name" : "WFR_VALUES" , "value_type" : "DOUBLE" , "size_type" : "ALL"}],
[{"name" : "GFR_VALUES" , "value_type" : "DOUBLE" , "size_type" : "ALL"}],
[{"name" : "ALQ_VALUES" , "value_type" : "DOUBLE" , "size_type" : "ALL"}],
[{"name" : "THP_INDEX" , "value_type" : "INT"},
{"name" : "WFR_INDEX" , "value_type" : "INT"},
{"name" : "GFR_INDEX" , "value_type" : "INT"},
{"name" : "ALQ_INDEX" , "value_type" : "INT"},
{"name" : "VALUES" , "value_type" : "DOUBLE" , "size_type" : "ALL"}]
]}