llcppg/ast:marco & token
This commit is contained in:
@@ -16,6 +16,10 @@
|
||||
|
||||
package ast
|
||||
|
||||
import (
|
||||
"github.com/goplus/llgo/chore/llcppg/token"
|
||||
)
|
||||
|
||||
// =============================================================================
|
||||
|
||||
type Node interface {
|
||||
@@ -44,6 +48,11 @@ type PPD interface { // preprocessing directive
|
||||
// =============================================================================
|
||||
// Expressions (Types are also expressions)
|
||||
|
||||
type Token struct {
|
||||
Token token.Token
|
||||
Lit string
|
||||
}
|
||||
|
||||
type BasicLitKind uint
|
||||
|
||||
const (
|
||||
@@ -293,6 +302,8 @@ func (*Include) ppdNode() {}
|
||||
// ------------------------------------------------
|
||||
|
||||
type Macro struct {
|
||||
Name string
|
||||
Info []*Token
|
||||
}
|
||||
|
||||
func (*Macro) ppdNode() {}
|
||||
|
||||
Reference in New Issue
Block a user