commit | 682e7bcc6402494c3ee42aa5bb1fd330493cfe9b | [log] [tgz] |
---|---|---|
author | swissChili <swisschili@fastmail.com> | Tue Dec 07 09:04:54 2021 -0800 |
committer | swissChili <swisschili@fastmail.com> | Tue Dec 07 09:04:54 2021 -0800 |
tree | 0e3f57a56f7c6d874b6d3fc123f9613abbb3b79b | |
parent | c71acc6512d512dfabdfa07b877c9058ca2d9e8a [diff] [blame] |
Fix parser, matcher
diff --git a/Token.h b/Token.h index 76020ef..dfa0223 100644 --- a/Token.h +++ b/Token.h
@@ -27,6 +27,7 @@ char varType() const; const QString &name() const; + QChar symbol() const; operator QString() const; @@ -196,3 +197,9 @@ static const QString typeNames[] = {"SYMBOL", "IDENT", "PAREN", "VAR"}; return typeNames[type]; } + +template <typename T> +QChar TokenBase<T>::symbol() const +{ + return _charVal; +}