| 142 | } |
| 143 | |
| 144 | private SimpleValue(): Value | undefined { |
| 145 | let value = ''; |
| 146 | const index = this.input |
| 147 | .slice(this.pointer) |
| 148 | .search(this._simpleValueRegExp); |
| 149 | if (this.input.charAt(this.pointer) === this.quote) { |
| 150 | return; |
| 151 | } else if (index === -1) { |
| 152 | value = this.input.slice(this.pointer); |
| 153 | } else if (index === 0) { |
| 154 | return; |
| 155 | } else { |
| 156 | value = this.input.slice(this.pointer, this.pointer + index); |
| 157 | } |
| 158 | this.pointer += value.length; |
| 159 | return value; |
| 160 | } |
| 161 | |
| 162 | private QuotedValue(): Value | undefined { |
| 163 | if (this.input.charAt(this.pointer) === this.quote) { |