summaryrefslogtreecommitdiff
path: root/lib/sbin/parameter_parser.pl
Commit message (Collapse)AuthorAge
* simplify code by combining similar (debug) functionsknarf2009-09-11
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4569 17b73243-c579-4c4c-a9d2-2d5706c11dac
* bugfix for comparing a parameter's default value against its allowed parametertradke2008-08-15
| | | | | | | range(s) with closed intervals git-svn-id: http://svn.cactuscode.org/flesh/trunk@4501 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Ensure that the default value for REAL parameters is really a realschnetter2008-01-25
| | | | | | | | | | number. Ensure that the default values for keywords are checked as well, currently in the same way as strings. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4456 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Correct the handling of spaces when parsing EXTENDS and USES statements.schnetter2008-01-25
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@4453 17b73243-c579-4c4c-a9d2-2d5706c11dac
* When parsing parameters, require that no other text comes beforeschnetter2008-01-25
| | | | | | | the EXTENDS or USES keywords. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4448 17b73243-c579-4c4c-a9d2-2d5706c11dac
* fix a regexp bug in the parsing of the upper bound for an open-intervaljthorn2005-09-06
| | | | | | | | | | | integer parameter ranges in parse_param_ccl(): The perl regexp was checking for somthing like ( number : ( number whereas we really want (and this fix changes the code to test for) something like ( number : number ) git-svn-id: http://svn.cactuscode.org/flesh/trunk@4121 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Also allow a single '*' as range specification for integer and real parameters.tradke2005-09-05
| | | | | | | This closes PR CactusEinstein/1962: "IDAxiBrillBH: CST errors (Invalid range)". git-svn-id: http://svn.cactuscode.org/flesh/trunk@4120 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Check that the ranges and default value for integer parameterstradke2005-09-02
| | | | | | | are also given as integers. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4118 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Undo previous patch:schnetter2005-06-03
| | | | | | | | | Require quotes for keyword parameter default values again. Note the code is still broken; it requires quotes somewhere in the value, not around it. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4069 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Do not require double quotes around the default for keyword values.schnetter2005-05-27
| | | | | | | No other place required double quotes for keyword values. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4065 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fixed bug from my previous commit which used the wrong logical expressiontradke2005-05-16
| | | | | | | for checking the default value of numerical parameters. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4056 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Don't use keyword parameter ranges as regulare expressions but as ordinarytradke2005-05-16
| | | | | | | | | string values when comparing the default value against them. This closes PR Cactus/1927: "Keyword parameter checking in CST is wrong". git-svn-id: http://svn.cactuscode.org/flesh/trunk@4055 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fix for checking for empty patterns in regexps:tradke2005-05-16
| | | | | | | use 'eq' rather than '==' for string comparisons. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4054 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Do not use empty patterns in regexps in perl when checking the defaultschnetter2005-05-12
| | | | | | | | value of string parameters. (Empty patterns have a special meaning in perl.) git-svn-id: http://svn.cactuscode.org/flesh/trunk@4046 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fixed two bugs in handling of invalid datatypes such CCTK_INT8, one of whichrideout2005-01-11
| | | | | | | caused the CST to hang. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3955 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Slightly more pedantic error message, plus better wording for whengoodale2004-08-18
| | | | | | | | trying to change the default for a shared or extended parameter. Fixes PR 1830. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3843 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Make it an error to try to change the default when extending or sharing agoodale2004-08-17
| | | | | | | | | parameter. Patch from Yaakoub. Fixes PR 1824. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3836 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Output shared implementationsschnetter2004-01-11
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3499 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Allow comparison operators in accumulator expressions.schnetter2003-11-07
| | | | | | | Add the ! not operator to accumulator expressions. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3454 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fix typo.schnetter2003-11-05
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3452 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Traverse all hashes alphabetically, so that all output files of theschnetter2003-10-07
| | | | | | | | CST stage will be identical. This is necessary at least since perl 5.8.1 to avoid redundant recompilation. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3425 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Removed all arrangement names from error messages since arrangement is notallen2003-07-12
| | | | | | | defined in these routines (yet). git-svn-id: http://svn.cactuscode.org/flesh/trunk@3272 17b73243-c579-4c4c-a9d2-2d5706c11dac
* improved error messageallen2003-07-06
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3252 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Add check for multiple implementations on shares lineallen2003-07-05
| | | | | | | Fixed Cactus/924 git-svn-id: http://svn.cactuscode.org/flesh/trunk@3251 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Support for exponential notation in parameter ranges, e.g. 1.6e-82, byrideout2003-04-28
| | | | | | | Fokke Dijkstra. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3202 17b73243-c579-4c4c-a9d2-2d5706c11dac
* fix line breaks in warning message for missing range descriptionallen2003-01-04
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3070 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Allow white space between a parameter name and the parameter array size ifallen2002-12-31
| | | | | | | | | one is provided. Asked for in Cactus/1338 git-svn-id: http://svn.cactuscode.org/flesh/trunk@3069 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Improve error messagesallen2002-12-30
| | | | | | | Fixed Cactus/1353 git-svn-id: http://svn.cactuscode.org/flesh/trunk@3057 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Improve error messages for unknown linesallen2002-12-30
| | | | | | | Fixes Cactus/1352 git-svn-id: http://svn.cactuscode.org/flesh/trunk@3056 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Strip trailing spaces from parameter defaultsallen2002-05-23
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@2854 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added AS for parameters. You can now have one name for a parameter as seengoodale2002-05-20
| | | | | | | | | | | | | | | | by the user, and another name for the vaiable in your code. This will be particularly useful for avoiding conflicts when sharing parameters from other implementations. Syntax: [uses|extends] <type> <name> ["<description>"] AS <newname> Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@2832 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added array parameters.goodale2002-05-20
| | | | | | | | | | | Added accumulator parameters - needs a bit more error checking. Preliminary support for aliasing parameters - disabled until it works properly. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@2829 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added functions for checking an expression for the proposed accumulatorgoodale2002-05-17
| | | | | | | | | parameters. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@2825 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Allow '::' to be used in parameter range descriptions.tradke2002-05-02
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@2778 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fixed a bug from the last commit which caused the parameter options not betradke2002-03-12
| | | | | | | | | parsed anymore (eg. all parameters were parsed as non-steerable). This closes CactusConnect/911. git-svn-id: http://svn.cactuscode.org/flesh/trunk@2640 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fixed problem when last line of param.ccl is a "uses" or "extends" lineallen2002-02-24
| | | | | | | which doesn't have a newline or space at the end git-svn-id: http://svn.cactuscode.org/flesh/trunk@2627 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Adding missing values y,n,t,f,true and false to allowed values checked forgoodale2001-11-14
| | | | | | | | | | in the default for booleans. This should now be consistent with what the flesh allows and the docs say. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@2464 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fixed small bug with parsing a missing default value for a parameterallen2001-10-24
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@2430 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Untabified.goodale2001-10-14
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@2408 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Adding a "help" argument to the CST_error call to start adding suggested ↵allen2001-08-19
| | | | | | | | | causes for the errors. At the moment the help message is always shown, since I've only added a couple so far. git-svn-id: http://svn.cactuscode.org/flesh/trunk@2307 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Strip spaces from numeric ranges.goodale2001-05-08
| | | | | | | | | | | | | | Initially we had decided that you could have multiple rnages on one line, so this change disables that behaviour, 'though we may add it in again with commas if it is really wanted, which i can certainly see a case for, 'though the rest of the code didn't actually support multiple ranges per line anyway 8-) This should fix PR 657. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@2155 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Allowing ranges in a parameter range regex string.tradke2001-03-19
| | | | | | | Sorry, Tom, I couldn't wait. git-svn-id: http://svn.cactuscode.org/flesh/trunk@2085 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Making sure there is at least one space between parameter type and name.goodale2001-03-17
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@2082 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Check default parameter value lies in allowed ranges during CSTallen2000-12-17
| | | | | | | Cactus/323 git-svn-id: http://svn.cactuscode.org/flesh/trunk@1971 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Remove necessity for description string when doing USES or EXTENDS.goodale2000-12-17
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1969 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fixed it so USES no longer needs an empty {} block.goodale2000-12-17
| | | | | | | Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1966 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Removed ability to use deprecated LOGICAL.goodale2000-12-17
| | | | | | | | | Removed necessity for range with some USES - still need {} , 'though. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1965 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Cactus/427allen2000-12-17
| | | | | | | | | Check that parameter range descriptions are surrounded by quotes Give a warning if :: is used and no description is given git-svn-id: http://svn.cactuscode.org/flesh/trunk@1961 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Now if the :: delimiting a description of the range is missing, the rangegoodale2000-04-04
| | | | | | | | | doesn't end up blank. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1510 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Removed debug statementsallen2000-02-03
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@1339 17b73243-c579-4c4c-a9d2-2d5706c11dac