ast_list.go 296 B

123456789101112131415161718192021
  1. package hhc_ast
  2. type ASTNode interface {
  3. GetTokenRaw() string
  4. }
  5. type ASTNode_Command struct {
  6. Name string
  7. }
  8. func (n ASTNode_Command) GetTokenRaw() string {
  9. return n.Name
  10. }
  11. type ASTNode_ValArg struct {
  12. RawToken string
  13. }
  14. func (n ASTNode_ValArg) GetTokenRaw() string {
  15. return n.RawToken
  16. }