llcppg/ast:basiclit

This commit is contained in:
luoliwoshang
2024-08-14 18:27:15 +08:00
parent 9f1100b967
commit cfe785762d

View File

@@ -44,6 +44,22 @@ type PPD interface { // preprocessing directive
// =============================================================================
// Expressions (Types are also expressions)
type BasicLitKind uint
const (
IntLit BasicLitKind = iota
FloatLit
CharLit
StringLit
)
type BasicLit struct {
Kind BasicLitKind
Value string
}
func (*BasicLit) exprNode() {}
type TypeKind uint
const (