Files
gonum/graph/formats/dot/internal/token/context.go
Dan Kortschak 258a51e069 graph/formats/dot/internal: regenerate with latest goccmack/gocc
Make use of go.mod to pin gocc version and go mod tidy.
2023-05-01 06:18:27 +09:30

25 lines
754 B
Go

// Code generated by gocc; DO NOT EDIT.
// This file is dual licensed under CC0 and The Gonum License.
//
// Copyright ©2017 The Gonum Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//
// Copyright ©2017 Robin Eklind.
// This file is made available under a Creative Commons CC0 1.0
// Universal Public Domain Dedication.
package token
// Context allows user-defined data to be associated with the
// lexer/scanner to be associated with each token that lexer
// produces.
type Context interface{}
// Sourcer is a Context interface which presents a Source() method
// identifying e.g the filename for the current code.
type Sourcer interface {
Source() string
}