Browse Source

Docs: error in docs..

tags/gm/2021-09-23T00Z/github.com--lark-parser-lark/0.10.0
Erez Sh 4 years ago
parent
commit
96b0cfbbc4
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      lark/lexer.py

+ 1
- 1
lark/lexer.py View File

@@ -97,7 +97,7 @@ class Token(Str):
so normal string comparisons and operations will work as expected.

Attributes:
type_: Name of the token (as specified in grammar)
type: Name of the token (as specified in grammar)
value: Value of the token (redundant, as ``token.value == token`` will always be true)
pos_in_stream: The index of the token in the text
line: The line of the token in the text (starting with 1)


Loading…
Cancel
Save