Skip to content

Navigation Menu

Sign up

How to use splparser.cmdrules.common

salspaugh edited this page Feb 13, 2013 · 7 revisions

How to use splparser.cmdrules.common

Although the syntax of SPL commands can be quite idiosyncratic, there is still quite a bit of overlap in the rules which can be used to parse the commands. In order to avoid redundancy (each parser containing copies of the same rules), parsers can import rules from splparser.cmdrules.common. Doing this is highly recommended. If you wish to use these rules (and you should), you need to be careful to define all the requisite tokens, which are noted below.

The modules within this package are as follows:

splparser.common.asrules
splparser.common.byrules

These are very simple rules for as and by, which are used by many SPL commands. These rules match both the uppercase and lowercase version of the words "as" and "by".

Required tokens (respectively): ASLC ASUC BYLC BYUC

splparser.common.evalfnexprrules
splparser.common.fieldlistrules
splparser.common.fieldrules
splparser.common.simplefieldlistrules
splparser.common.simplefieldrules
splparser.common.simplevaluerules
splparser.common.statsfnrules
splparser.common.uminusrules
splparser.common.valuerules

Clone this wiki locally

AltStyle によって変換されたページ (->オリジナル) /