We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72143b7 commit f7e37edCopy full SHA for f7e37ed
tigerc/src/ident_pool.rs
@@ -26,6 +26,8 @@ symbols! {
26
TOK_LET: "let",
27
TOK_IN: "in",
28
TOK_END: "end",
29
+ // use for inner symbol
30
+ REVERSED_ANONYMOUS: "__anonymous",
31
}
32
33
tigerc/src/ir.rs
@@ -1,6 +1,6 @@
1
use std::hash::Hash;
2
3
-use crate::ident_pool::Symbol;
+use crate::ident_pool::{kw, Symbol};
4
use crate::temp::{Label, Temp};
5
6
// Identify different symbol with same name
@@ -24,6 +24,10 @@ impl LowerIdent {
24
},
25
+
+ pub fn new_anonymous() -> LowerIdent {
+ LowerIdent::new(kw::REVERSED_ANONYMOUS)
+ }
impl PartialEq for LowerIdent {
0 commit comments