package tokens
import "github.com/open-policy-agent/opa/ast/internal/tokens"
Index ¶
Functions ¶
func Keywords ¶
Keywords returns a copy of the default string -> Token keyword map.
Types ¶
type Token ¶
type Token int
Token represents a single Rego source code token for use by the Parser.
const ( Illegal Token = iota EOF Whitespace Ident Comment Package Import As Default Else Not Some With Null True False Number String LBrack RBrack LBrace RBrace LParen RParen Comma Colon Add Sub Mul Quo Rem And Or Unify Equal Assign In Neq Gt Lt Gte Lte Dot Semicolon )
All tokens must be defined here
func (Token) String ¶
Source Files ¶
- Version
- v0.34.2
- Published
- Nov 10, 2021
- Platform
- linux/amd64
- Last checked
- 42 minutes ago –
Tools for package owners.