Merge pull request #714 from luoliwoshang/llcppg/ast/basiclit
llcppg/ast:basiclit
This commit is contained in:
@@ -44,6 +44,22 @@ type PPD interface { // preprocessing directive
|
|||||||
// =============================================================================
|
// =============================================================================
|
||||||
// Expressions (Types are also expressions)
|
// 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
|
type TypeKind uint
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|||||||
Reference in New Issue
Block a user