gonum.org/v1/gonum@v0.14.0/graph/formats/dot/internal/token/context.go (about)

     1  // Code generated by gocc; DO NOT EDIT.
     2  
     3  // This file is dual licensed under CC0 and The Gonum License.
     4  //
     5  // Copyright ©2017 The Gonum Authors. All rights reserved.
     6  // Use of this source code is governed by a BSD-style
     7  // license that can be found in the LICENSE file.
     8  //
     9  // Copyright ©2017 Robin Eklind.
    10  // This file is made available under a Creative Commons CC0 1.0
    11  // Universal Public Domain Dedication.
    12  
    13  package token
    14  
    15  // Context allows user-defined data to be associated with the
    16  // lexer/scanner to be associated with each token that lexer
    17  // produces.
    18  type Context interface{}
    19  
    20  // Sourcer is a Context interface which presents a Source() method
    21  // identifying e.g the filename for the current code.
    22  type Sourcer interface {
    23  	Source() string
    24  }