Atle Haugan
9ac0401af5
Support for PATHS keyword - first take
2014-02-21 12:56:20 +01:00
Atle Haugan
cd3d4f9337
First cut: TITLE keyword now being parsed correctly.
2014-01-28 10:01:11 +01:00
Atle Haugan
51ac683ef2
OPM-17: Fixed bug in END[INC] logic.
2014-01-24 13:16:37 +01:00
Andreas Lauser
9a09fa29af
rename Parser::parse to Parser::parseFile and add Parser::parseData
...
Parser::parseData is quite useful for unit tests to prevent them
spilling files to everything. Also, what was formerly
Parser::parseFile has been renamed to Parser::parseStream and slightly
modified to not be specific for std::ifstream.
2014-01-10 14:51:56 +01:00
Atle Haugan
6709523843
Removed even more green code
2014-01-08 11:20:31 +01:00
Atle Haugan
e3f752f38b
Removed some green code
2014-01-08 11:12:52 +01:00
Atle Haugan
25eb08aa52
After code review with Kristian and Joakim
2014-01-08 10:49:21 +01:00
Atle Haugan
67ab48eee0
First running version of the KeyWordDescriber class. Some cleanup and refactoring required.
2014-01-08 10:49:20 +01:00
Atle Haugan
72545992e1
First running version of the KeyWordDescriber class. Some cleanup and refactoring required.
2014-01-08 10:49:20 +01:00
Joakim Hove
de16ff8da1
Added methods applyUnitsToDeck() which push units onto the deck.
2013-12-14 10:28:49 +01:00
Andreas Lauser
7be1af4bf3
Parser.hpp: make the guardian macro less prone to conflicts
...
as soon as this class is used with another project, the old macro name
basically screamed for a naming conflict and a _very_ confused user...
2013-12-09 07:55:58 +01:00
Kristian Flikka
a750fd422d
Added constructor, moved ParserState struct to cpp file
2013-12-06 15:27:05 +01:00
Kristian Flikka
78337c7bda
Added a ParserState struct, to encapsulate the temporary state of the parsing process
2013-12-06 14:18:05 +01:00
Joakim Hove
f1e9230911
Merge remote-tracking branch 'upstream/master' into norne-keywords
2013-12-02 13:21:00 +01:00
Kristian Flikka
1d0135da5e
Removed use of boost::shared_ptr, replaced with std::shared_ptr
2013-12-02 13:07:01 +01:00
Joakim Hove
abd0905171
Changed parser to support parsing of keywords with wildcard like
...
"TVDP*". An importtant change is that we now query the parser
canParseKeyword() instead of hasKeyword().
2013-12-01 09:28:14 +01:00
Joakim Hove
2ac8bc55a5
Merge pull request #30 from joakim-hove/data-with-space
...
Data with space
2013-10-15 05:23:11 -07:00
Joakim Hove
b63244228d
Added Parser::dropKeyword()
2013-10-09 08:22:43 +02:00
Joakim Hove
f0770f47fb
Added filename and line nr to RawRecord
2013-10-08 15:23:45 +02:00
Kristian Flikka
297c719a1c
Cleanup of some remaining Logger stuff
2013-09-19 10:57:46 +02:00
Joakim Hove
1ff18bb38a
Removed constructor with one global JSON config file + addedd optional flag to include all built in keywords
2013-09-14 22:39:43 +02:00
Joakim Hove
414feb1132
Added dynamic creation of inline default list of keywords
2013-09-14 21:44:20 +02:00
Joakim Hove
41376779f0
Fixed handling of INCLUDE keyword
2013-09-02 10:08:37 +02:00
Kristian Flikka
480d14934b
Added test for a case with fully, partial and empty record body, defaults are added
2013-08-26 15:17:52 +02:00
Joakim Hove
b630140316
Merged upstream/master
2013-08-23 09:30:23 +02:00
Kristian Flikka
8b4d052f9c
Added parameter to parse function to indicate if strict (exception throwing) parsing should be performed
2013-08-21 14:54:38 +02:00
Joakim Hove
dfca913462
Added method to load keyword configurations from directory
2013-08-21 12:50:21 +02:00
Kristian Flikka
89daeea561
Renamed newRawKeyword to createRawKeyword. Minor refactoring
2013-08-21 08:44:46 +02:00
Joakim Hove
47d29cc804
Added parser->size() and parser->loadKeywordFromFile()
2013-08-19 22:37:48 +02:00
Joakim Hove
134e4be5cf
Removed references to RawDeck
2013-08-14 08:40:07 +02:00
Joakim Hove
5ab04d4b17
Removed old Parser::parse() and replaced with new implementation
2013-08-12 14:39:11 +02:00
Joakim Hove
5c3de27077
1. Implemented support for inferring size from another kewyord - i.e EQLDIMS + EQUIL.
...
2. Cleaned up the main parser loop considerably; the RawKeyword instance now itself knows whether it is complete or not.
2013-08-11 12:36:16 +02:00
Joakim Hove
b3d9fb51a0
Parser object can be constructed with config file as input argument
2013-07-31 11:30:21 +02:00
Joakim Hove
e0995814f6
More JSON integration in Parser and ParserKeyword
2013-07-30 14:10:07 +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
d79745ce4f
Changed some KEYWORD->Keyword instances, search and replace hickup
2013-06-20 15:40:45 +02:00
Kristian Flikka
f1660460dc
Replaced all instances of KW with Keyword. We can afford it.
2013-06-20 15:30:37 +02:00
Kristian Flikka
2cce97f115
Split parser function, to make more modular and testable. Moved integrationtests from ParserTests into Integration tests.
2013-06-18 10:28:30 +02:00
Kristian Flikka
fbb468342d
Finished up the last pieces for a simple BPR keyword vertical.
2013-06-04 14:32:30 +02:00
Kristian Flikka
b43d95c5a2
Starting to wrap up from the top, added the missing DeckKW, and refactored a bit in some of the Raw classes that returned the internal structure
2013-06-03 15:54:16 +02:00
Joakim Hove
c596b086c8
Started integration testing
2013-05-30 10:11:12 +02:00
Kristian Flikka
bf3be4695d
Refactoring, prefixing parser setup classes with Parser. 4 space indent.
2013-05-06 12:13:49 +02:00
Joakim Hove
40e6a35332
???
2013-05-06 09:48:29 +02:00
Joakim Hove
60abc2c397
Merged in documentation
2013-05-06 09:44:00 +02:00
Kristian Flikka
f7fdbe96fa
Added some comments and documentation
2013-05-05 23:02:26 +02:00
Kristian Flikka
f89b8362ff
Changed to tabsize 2 after discussion with Joakim. I vote for real tabs.
2013-04-08 10:36:14 +02:00
Kristian Flikka
1868615a4a
Moved some consts for the Raw classes to a separate file, characters and sizes
2013-04-08 10:31:54 +02:00
Kristian Flikka
0d5ce81809
Merge pull request 2 from joakim-hove/master - Added code to add Keywords to parser class
2013-04-04 14:17:12 +02:00
Kristian Flikka
aa8cd7b4ca
Added a thin container for knowledge about keywords with fixed number of records. Changed some getter methods to return reference
2013-04-04 13:30:50 +02:00
Kristian Flikka
3adb09cb5a
Review updates: Keyword can have numbers, comment lines can start with space, data can start at pos 0 on line, must explicitly have end-of-keyword control
2013-04-04 09:56:00 +02:00