mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-29 04:24:43 +00:00
Change ref
and ref!
to unary operators
This commit is contained in:
parent
62e89a1edf
commit
f0d686cd7b
5 changed files with 87 additions and 55 deletions
|
@ -525,6 +525,8 @@ impl Lexer /*<'a>*/ {
|
|||
"isnot" => IsNotOp,
|
||||
"dot" => DotOp,
|
||||
"cross" => CrossOp,
|
||||
"ref" => RefOp,
|
||||
"ref!" => RefMutOp,
|
||||
// これらはリテラルというより定数だが便宜的にリテラルということにしておく
|
||||
"True" | "False" => BoolLit,
|
||||
"None" => NoneLit,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue