Documentation
¶
Overview ¶
Package lexer implements a lexical scanner for Cypher.
Cypher introduces several lexical elements absent from SQL-family languages:
- Backtick-quoted identifiers: `My Identifier`
- Parameter syntax: $name or the legacy {name} form
- Relationship arrow tokens: -> and <-
- Variable-length range syntax inside relationship patterns: [*1..3]
- The regex-match operator: =~
The lexer is a standard one-character-lookahead scanner built on the same structure as the tsqlparser lexer: a Lexer struct with position/readPosition and a rune-at-a-time readChar/peekChar API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.