import { createOperatorToken , OperatorToken } from "../Token" ; import { SeekProcessor } from "../LexerProcessor" ; const seekComparisonCustomOperatorToken = ( context ) => { let endPosition = context . position + 1 ; while ( endPosition < context . length && context . buffer . charCodeAt ( endPosition ) >= 97 && context . buffer . charCodeAt ( endPosition ) <= 122 ) { endPosition ++ ; } if ( context . buffer [ endPosition ] === "=" ) { const operator = context . buffer . slice ( context . position , endPosition + 1 ) ; const token = createOperatorToken ( operator , context . position ) ; context . position += operator . length ; return token ; } return null ; } ; export default seekComparisonCustomOperatorToken ;