feat: throw an Error if delimiter not matched

This commit is contained in:
harttle
2019-02-20 22:40:09 +08:00
parent c13a16fdd6
commit c33d8f6828
5 changed files with 62 additions and 28 deletions
+3 -1
View File
@@ -1,11 +1,13 @@
export default class Token {
type: string
line: number
col: number
raw: string
input: string
file: string
value: string
constructor (raw, pos, input, file, line) {
constructor (raw, col, input, file, line) {
this.col = col
this.line = line
this.raw = raw
this.input = input