chflo
3298fe4337
OPM-145: Removed tests for ACTION
2015-01-14 10:14:06 +01:00
Andreas Lauser
ea38a25af4
remove all trailing white space
...
this is just the result of
```
find -iname "*.[ch]pp" | xargs sed -i "s/ *$//"
find opm/parser/share/keywords -type f | xargs sed -i "s/ *$//"
```
so if it causes conflicts with other patches, the others should get
priority. The rationale behind this patch is that some people tell
their editor to remove white space which leads to larger than
necessary patches...
2014-12-08 16:34:28 +01:00
Andreas Lauser
ead7e0a8c9
make the parser case-insensitive
...
i.e., make keywords ALL_UPPERCASE before using them because Eclipse
seems to be case-insensitive (although this is one of its undocumented
features...)
2014-11-07 14:24:12 +01:00
Andreas Lauser
a4f55f5f8d
JSON keyword definitions: make the "sections" item mandatory
...
the empty list can be used which means that the keyword may occur in
any section. (which is useful for e.g. section delimiters.)
2014-10-13 16:06:09 +02:00
Joakim Hove
d6fa1449af
Default: Changed size_type: ALL -> SINGLE
2014-09-03 10:37:01 +02:00
Andreas Lauser
fee11596f8
allow underscores in deck names and disallow sharps
...
underscores are used by a few of the summary specifier keywords
(e.g. BPR_X), but after closer inspection '#' symbols are not.
2014-06-29 14:32:06 +02:00
Andreas Lauser
96904b00f4
allow keywords to match regular expressions as their deck name
...
the RE used is specified via the "deck_name_regex" in the JSON file of
the respective keyword. A deck name is assumed to match a given parser
internal keyword if the deck name is valid and if it is either in the
list specified by the "deck_names" entry or if it matches the regular
expression.
This functionality is useful to implement the well probes for the
tracers as well as replacing the current "wild card keyword"
implementation which only allows a star as a suffix.
2014-06-29 14:32:06 +02:00
Andreas Lauser
5f949c11c3
add support for parser keywords specifying to multiple deck keywords
...
Say hello to the complete set of well, region, field and group output
specifiers soon...
2014-06-13 13:17:03 +02:00
Andreas Lauser
d820a4d435
change construction of ParserKeyword objects to the factory paradigm
...
this makes it more explicit what the object is supposed to represent.
2014-06-11 15:08:58 +02:00
Atle Haugan
ed17058ad3
Renamed FLOAT to DOUBLE in JSON files, tests and some code using the enum
2014-02-17 15:02:40 +01:00
Andreas Lauser
0129a382a8
units: Replace "L" by "Length"
2014-02-11 12:45:43 +01:00
Andreas Lauser
6a97d78cc6
units: replace "t" with "Time"
...
this makes things more explicit and more readable
2014-02-11 12:45:41 +01:00
Atle Haugan
ddd4563f97
Renamed from 'help' to 'description' for ParserKeyword and ParserItem
2014-01-10 10:57:35 +01:00
Atle Haugan
3271156f9d
First pull request candidate with help support
2014-01-09 13:33:32 +01:00
Atle Haugan
d3d6dc2c90
Added unit tests for ParserKeyword.help()
2014-01-09 08:42:27 +01:00
Joakim Hove
ae2260aa43
Table collection keywords PVTO and PVTG now have individual items: settings.
2013-12-19 13:54:51 +01:00
Joakim Hove
5a69f64aef
Added functionality to apply dimensions to ParserItem from JsonConfig.
2013-12-10 17:35:20 +01:00
Joakim Hove
bb8b3ab240
Added ability to push_back() dimension strings to ParserItems; and then to query the
...
ParserItem -> ParserRecord -> ParserKeyword() structure whether it has dimension.
2013-12-09 21:12:27 +01:00
Joakim Hove
24e233a53c
Support for parsing keywords with unknown size.
2013-12-05 08:26:29 +01:00
Joakim Hove
9ccc70b58d
Added enum for size of rawkeywords.
2013-12-04 17:21:54 +01:00
Joakim Hove
ed06ebf4d3
Added UNKNOWN enum value in ParserKeywordSize enum throughout.
2013-12-04 15:31:28 +01:00
Kristian Flikka
d007e8400f
Added new UNKNOWN for keywordSizeEnum
2013-12-04 14:26:08 +01:00
Joakim Hove
17ee1cca38
Added simple wildcard (trailing '*') support in ParserKeyword.
2013-12-01 09:25:52 +01:00
Joakim Hove
997d53ea99
Merge branch 'store-file-and-line' into keyword-status
2013-10-08 15:28:21 +02:00
Joakim Hove
f0770f47fb
Added filename and line nr to RawRecord
2013-10-08 15:23:45 +02:00
Joakim Hove
cc21644c9e
Added Json parsing of action attribute
2013-10-08 14:13:45 +02:00
Joakim Hove
e6b38c6445
Added action value to ParserKeyword constructor
2013-10-08 13:46:55 +02:00
Joakim Hove
b4b4a50092
Completed tableCollection implementation - added PVTG based testing
2013-10-01 17:13:40 +02:00
Joakim Hove
2913b526d7
Added isTableCollection attribute on Parser and Raw keyword - mainly to parse PVTG keyword
2013-10-01 16:35:55 +02:00
Joakim Hove
b938057dbd
Renamed sizeType UNDEFINED -> SLASH_TERMINATED
2013-10-01 15:50:43 +02:00
Joakim Hove
5ea0b8de20
Fixed readFromRawRecord to correctly handle empty records with sizeType == ALL
2013-10-01 15:45:28 +02:00
Joakim Hove
d7ca4fee83
Added support for 'data' keywords ~ the PORO and PERMX keywords
2013-09-22 17:23:27 +02:00
Joakim Hove
0afbcfc6e4
sizeType is default set to SINGLE - and optional in Json config
2013-09-18 07:16:09 +02:00
Joakim Hove
e75998666d
Updated ParserKeyword::validName() to disregard names with not alphanumeric (c)
2013-08-21 23:15:40 +02:00
Joakim Hove
4202ad027d
Added static method ParserKeyword::validName()
2013-08-21 12:43:15 +02:00
Joakim Hove
47d29cc804
Added parser->size() and parser->loadKeywordFromFile()
2013-08-19 22:37:48 +02:00
Joakim Hove
75de3033f9
Renamed variables related keyword inferring size from other keyword
2013-08-14 08:43:54 +02:00
Joakim Hove
c046fb0bde
Added support for keywords getting size from other keywords ~ EQUIL style
2013-08-06 16:26:49 +02:00
Joakim Hove
8bc176d63e
Added full(?) Parser configuration from json
2013-07-31 17:58:05 +02:00
Joakim Hove
db60ee2b56
Removed setRecord() method ParserKeyword. Instead ParserRecord is created during ParserKeyword construction
2013-07-31 15:02:00 +02:00
Joakim Hove
dd5e0b7b9c
Added throw() if JsonObject does not have name:
2013-07-31 11:29:16 +02:00
Joakim Hove
e0995814f6
More JSON integration in Parser and ParserKeyword
2013-07-30 14:10:07 +02:00
Kristian Flikka
31b3031c1a
Removed class ParserKeywordSize, and accompanying tests. Put info into ParserKeyword. Changed tests to expose same constraints.
2013-06-24 14:08:53 +02:00
Kristian Flikka
50ec3e0244
Changed from using RawParserKeywords to equivalent functionality now in Parser and ParserKeywordSize
2013-06-21 15:34:06 +02:00
Kristian Flikka
01abb91959
Renamed ParserRecordSize to ParserKeywordSize, because it is more consistent with ParserItemSize
2013-06-21 10:23:24 +02:00
Kristian Flikka
f1660460dc
Replaced all instances of KW with Keyword. We can afford it.
2013-06-20 15:30:37 +02:00