NewKeywords creates a new Keywords instance
()
| 51 | |
| 52 | // NewKeywords creates a new Keywords instance |
| 53 | func NewKeywords() *Keywords { |
| 54 | k := &Keywords{ |
| 55 | DMLKeywords: make(KeywordCategory), |
| 56 | CompoundKeywords: make(KeywordCategory), |
| 57 | keywordMap: make(map[string]Keyword), |
| 58 | reservedKeywords: make(map[string]bool), |
| 59 | ignoreCase: true, |
| 60 | } |
| 61 | k.initialize() |
| 62 | return k |
| 63 | } |
| 64 | |
| 65 | // initialize sets up the initial keyword mappings |
| 66 | func (k *Keywords) initialize() { |