mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-25 00:35:26 +00:00
IC: code generation progress (#25379)
This commit is contained in:
@@ -28,10 +28,6 @@ const
|
||||
("nkError", "err"),
|
||||
("nkType", "onlytype"),
|
||||
("nkTypeSection", "type"),
|
||||
("tySequence", "seq"),
|
||||
("tyVar", "mut"),
|
||||
("tyProc", "proctype"),
|
||||
("tyUncheckedArray", "uarray"),
|
||||
("nkExprEqExpr", "vv"),
|
||||
("nkExprColonExpr", "kv"),
|
||||
("nkDerefExpr", "deref"),
|
||||
@@ -55,17 +51,75 @@ const
|
||||
("mVar", "varm"),
|
||||
("mInSet", "contains"),
|
||||
("mNil", "nilm"),
|
||||
("tyBuiltInTypeClass", "bconcept"),
|
||||
("tyUserTypeClass", "uconcept"),
|
||||
("tyUserTypeClassInst", "uconceptinst"),
|
||||
("tyCompositeTypeClass", "cconcept"),
|
||||
("tyGenericInvocation", "ginvoke"),
|
||||
("tyGenericBody", "gbody"),
|
||||
("tyGenericInst", "ginst"),
|
||||
("tyGenericParam", "gparam"),
|
||||
("nkStmtList", "stmts"),
|
||||
("nkDotExpr", "dot"),
|
||||
("nkBracketExpr", "at")
|
||||
("nkBracketExpr", "at"),
|
||||
|
||||
("tyNone", "n0"), # we always use a digit for type kinds so there can be no overlap with node kinds
|
||||
("tyBool", "b0"),
|
||||
("tyChar", "c0"),
|
||||
("tyEmpty", "e0"),
|
||||
("tyAlias", "a0"),
|
||||
("tyNil", "n1"),
|
||||
("tyUntyped", "U0"),
|
||||
("tyTyped", "t0"),
|
||||
("tyTypeDesc", "t1"),
|
||||
("tyGenericInvocation", "g0"),
|
||||
("tyGenericBody", "g1"),
|
||||
("tyGenericInst", "g2"),
|
||||
("tyGenericParam", "g4"),
|
||||
("tyDistinct", "d0"),
|
||||
("tyEnum", "e1"),
|
||||
("tyOrdinal", "o0"),
|
||||
("tyArray", "a1"),
|
||||
("tyObject", "o1"),
|
||||
("tyTuple", "t2"),
|
||||
("tySet", "s0"),
|
||||
("tyRange", "r0"),
|
||||
("tyPtr", "p0"),
|
||||
("tyRef", "r1"),
|
||||
("tyVar", "v0"),
|
||||
("tySequence", "s1"),
|
||||
("tyProc", "p1"),
|
||||
("tyPointer", "p2"),
|
||||
("tyOpenArray", "o3"),
|
||||
("tyString", "s2"),
|
||||
("tyCstring", "c1"),
|
||||
("tyForward", "F0"),
|
||||
("tyInt", "i0"),
|
||||
("tyInt8", "i1"),
|
||||
("tyInt16", "i2"),
|
||||
("tyInt32", "i3"),
|
||||
("tyInt64", "i4"),
|
||||
("tyFloat", "f0"),
|
||||
("tyFloat32", "f1"),
|
||||
("tyFloat64", "f2"),
|
||||
("tyFloat128", "f3"),
|
||||
("tyUInt", "u0"),
|
||||
("tyUInt8", "u1"),
|
||||
("tyUInt16", "u2"),
|
||||
("tyUInt32", "u3"),
|
||||
("tyUInt64", "u4"),
|
||||
("tyOwned", "o2"),
|
||||
("tySink", "s3"),
|
||||
("tyLent", "L0"),
|
||||
("tyVarargs", "v1"),
|
||||
("tyUncheckedArray", "U1"),
|
||||
("tyError", "e2"),
|
||||
("tyBuiltInTypeClass", "b1"),
|
||||
("tyUserTypeClass", "U2"),
|
||||
("tyUserTypeClassInst", "U3"),
|
||||
("tyCompositeTypeClass", "c2"),
|
||||
("tyInferred", "I0"),
|
||||
("tyAnd", "a2"),
|
||||
("tyOr", "o4"),
|
||||
("tyNot", "n2"),
|
||||
("tyAnything", "a3"),
|
||||
("tyStatic", "s4"),
|
||||
("tyFromExpr", "F1"),
|
||||
("tyConcept", "c3"),
|
||||
("tyVoid", "v2"),
|
||||
("tyIterable", "I1")
|
||||
]
|
||||
SuffixesToReplace = [
|
||||
("Section", ""), ("Branch", ""), ("Stmt", ""), ("I", ""),
|
||||
|
||||
Reference in New Issue
Block a user