* Whitespace token modernization - ambient lexer * Whitespace token modernization - ampl lexer * Whitespace token modernization - apdlexer lexer * Whitespace token modernization - apl lexer * Whitespace token modernization - adl lexer * Whitespace token modernization - arrow lexer * Whitespace token modernization - asm lexer
466 lines
12 KiB
Text
Generated
466 lines
12 KiB
Text
Generated
'function' Keyword.Reserved
|
|
'\n' Text.Whitespace
|
|
|
|
'/-->' Punctuation
|
|
' ' Text.Whitespace
|
|
'bool' Keyword.Type
|
|
'[]' Punctuation
|
|
' ' Text.Whitespace
|
|
'primeSieve' Name.Function
|
|
'(' Punctuation
|
|
'int' Keyword.Type
|
|
' ' Text.Whitespace
|
|
'max' Name.Variable
|
|
')' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'| ' Punctuation
|
|
'bool' Keyword.Type
|
|
'[]' Punctuation
|
|
' ' Text
|
|
'primes' Name.Variable
|
|
'[' Punctuation
|
|
'max' Name.Variable
|
|
']' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'| ' Punctuation
|
|
'primes' Name.Variable
|
|
'[' Punctuation
|
|
'0' Literal.Number.Integer
|
|
']' Punctuation
|
|
' ' Text.Whitespace
|
|
'=' Operator
|
|
' ' Text.Whitespace
|
|
'false' Keyword.Constant
|
|
'\n' Text.Whitespace
|
|
|
|
'| ' Punctuation
|
|
'primes' Name.Variable
|
|
'[' Punctuation
|
|
'1' Literal.Number.Integer
|
|
']' Punctuation
|
|
' ' Text.Whitespace
|
|
'=' Operator
|
|
' ' Text.Whitespace
|
|
'false' Keyword.Constant
|
|
'\n' Text.Whitespace
|
|
|
|
'| \n| ' Punctuation
|
|
'int' Keyword.Type
|
|
' ' Text
|
|
'i' Name.Variable
|
|
'\n' Text.Whitespace
|
|
|
|
'| ' Punctuation
|
|
'i' Name.Variable
|
|
' ' Text.Whitespace
|
|
'=' Operator
|
|
' ' Text.Whitespace
|
|
'2' Literal.Number.Integer
|
|
'\n' Text.Whitespace
|
|
|
|
'| ' Punctuation
|
|
'/-->' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'| | ' Punctuation
|
|
'primes' Name.Variable
|
|
'[' Punctuation
|
|
'i' Name.Variable
|
|
']' Punctuation
|
|
' ' Text.Whitespace
|
|
'=' Operator
|
|
' ' Text.Whitespace
|
|
'true' Keyword.Constant
|
|
'\n' Text.Whitespace
|
|
|
|
'| | ' Punctuation
|
|
'i' Name.Variable
|
|
' ' Text.Whitespace
|
|
'=' Operator
|
|
' ' Text.Whitespace
|
|
'i' Name.Variable
|
|
' ' Text.Whitespace
|
|
'+' Operator
|
|
' ' Text.Whitespace
|
|
'1' Literal.Number.Integer
|
|
'\n' Text.Whitespace
|
|
|
|
'| ' Punctuation
|
|
'\\--<' Punctuation
|
|
' ' Text.Whitespace
|
|
'i' Name.Variable
|
|
' ' Text.Whitespace
|
|
'<' Operator
|
|
' ' Text.Whitespace
|
|
'max' Name.Variable
|
|
'\n' Text.Whitespace
|
|
|
|
'|\n| ' Punctuation
|
|
'int' Keyword.Type
|
|
' ' Text
|
|
'firstPrime' Name.Variable
|
|
'\n' Text.Whitespace
|
|
|
|
'| ' Punctuation
|
|
'firstPrime' Name.Variable
|
|
' ' Text.Whitespace
|
|
'=' Operator
|
|
' ' Text.Whitespace
|
|
'1' Literal.Number.Integer
|
|
'\n' Text.Whitespace
|
|
|
|
'| ' Punctuation
|
|
'/-->' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'| | ' Punctuation
|
|
'bool' Keyword.Type
|
|
' ' Text
|
|
'firstIsComposite' Name.Variable
|
|
'\n' Text.Whitespace
|
|
|
|
'| | ' Punctuation
|
|
'/-->' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'| | | ' Punctuation
|
|
'firstPrime' Name.Variable
|
|
' ' Text.Whitespace
|
|
'=' Operator
|
|
' ' Text.Whitespace
|
|
'firstPrime' Name.Variable
|
|
' ' Text.Whitespace
|
|
'+' Operator
|
|
' ' Text.Whitespace
|
|
'1' Literal.Number.Integer
|
|
'\n' Text.Whitespace
|
|
|
|
'| | | ' Punctuation
|
|
'firstIsComposite' Name.Variable
|
|
' ' Text.Whitespace
|
|
'=' Operator
|
|
' ' Text.Whitespace
|
|
'false' Keyword.Constant
|
|
'\n' Text.Whitespace
|
|
|
|
'| | | ' Punctuation
|
|
'/--<' Punctuation
|
|
' ' Text.Whitespace
|
|
'firstPrime' Name.Variable
|
|
' ' Text.Whitespace
|
|
'>' Operator
|
|
' ' Text.Whitespace
|
|
'max' Name.Variable
|
|
' ' Text.Whitespace
|
|
'or' Operator.Word
|
|
' ' Text.Whitespace
|
|
'firstPrime' Name.Variable
|
|
' ' Text.Whitespace
|
|
'=' Operator
|
|
'=' Operator
|
|
' ' Text.Whitespace
|
|
'max' Name.Variable
|
|
'\n' Text.Whitespace
|
|
|
|
'| | | | ' Punctuation
|
|
'firstIsComposite' Name.Variable
|
|
' ' Text.Whitespace
|
|
'=' Operator
|
|
' ' Text.Whitespace
|
|
'not' Operator.Word
|
|
' ' Text.Whitespace
|
|
'primes' Name.Variable
|
|
'[' Punctuation
|
|
'firstPrime' Name.Variable
|
|
']' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'| | | ' Punctuation
|
|
'\\-->' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'| | ' Punctuation
|
|
'\\--<' Punctuation
|
|
' ' Text.Whitespace
|
|
'firstIsComposite' Name.Variable
|
|
'\n' Text.Whitespace
|
|
|
|
'| | ' Punctuation
|
|
'/--<' Punctuation
|
|
' ' Text.Whitespace
|
|
'firstPrime' Name.Variable
|
|
' ' Text.Whitespace
|
|
'>' Operator
|
|
' ' Text.Whitespace
|
|
'max' Name.Variable
|
|
' ' Text.Whitespace
|
|
'or' Operator.Word
|
|
' ' Text.Whitespace
|
|
'firstPrime' Name.Variable
|
|
' ' Text.Whitespace
|
|
'=' Operator
|
|
'=' Operator
|
|
' ' Text.Whitespace
|
|
'max' Name.Variable
|
|
'\n' Text.Whitespace
|
|
|
|
'| | | ' Punctuation
|
|
'primes' Name.Variable
|
|
'[' Punctuation
|
|
'firstPrime' Name.Variable
|
|
']' Punctuation
|
|
' ' Text.Whitespace
|
|
'=' Operator
|
|
' ' Text.Whitespace
|
|
'true' Keyword.Constant
|
|
'\n' Text.Whitespace
|
|
|
|
'| | | ' Punctuation
|
|
'int' Keyword.Type
|
|
' ' Text
|
|
'composite' Name.Variable
|
|
'\n' Text.Whitespace
|
|
|
|
'| | | ' Punctuation
|
|
'composite' Name.Variable
|
|
' ' Text.Whitespace
|
|
'=' Operator
|
|
' ' Text.Whitespace
|
|
'firstPrime' Name.Variable
|
|
' ' Text.Whitespace
|
|
'*' Operator
|
|
' ' Text.Whitespace
|
|
'2' Literal.Number.Integer
|
|
'\n' Text.Whitespace
|
|
|
|
'| | | ' Punctuation
|
|
'/--<' Punctuation
|
|
' ' Text.Whitespace
|
|
'composite' Name.Variable
|
|
' ' Text.Whitespace
|
|
'>' Operator
|
|
' ' Text.Whitespace
|
|
'max' Name.Variable
|
|
'\n' Text.Whitespace
|
|
|
|
'| | | | ' Punctuation
|
|
'/-->' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'| | | | | ' Punctuation
|
|
'primes' Name.Variable
|
|
'[' Punctuation
|
|
'composite' Name.Variable
|
|
']' Punctuation
|
|
' ' Text.Whitespace
|
|
'=' Operator
|
|
' ' Text.Whitespace
|
|
'false' Keyword.Constant
|
|
'\n' Text.Whitespace
|
|
|
|
'| | | | | ' Punctuation
|
|
'composite' Name.Variable
|
|
' ' Text.Whitespace
|
|
'=' Operator
|
|
' ' Text.Whitespace
|
|
'composite' Name.Variable
|
|
' ' Text.Whitespace
|
|
'+' Operator
|
|
' ' Text.Whitespace
|
|
'firstPrime' Name.Variable
|
|
'\n' Text.Whitespace
|
|
|
|
'| | | | ' Punctuation
|
|
'\\--<' Punctuation
|
|
' ' Text.Whitespace
|
|
'composite' Name.Variable
|
|
' ' Text.Whitespace
|
|
'<' Operator
|
|
' ' Text.Whitespace
|
|
'max' Name.Variable
|
|
'\n' Text.Whitespace
|
|
|
|
'| | | ' Punctuation
|
|
'\\-->' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'| | ' Punctuation
|
|
'\\-->' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'| ' Punctuation
|
|
'\\--<' Punctuation
|
|
' ' Text.Whitespace
|
|
'firstPrime' Name.Variable
|
|
' ' Text.Whitespace
|
|
'<' Operator
|
|
' ' Text.Whitespace
|
|
'max' Name.Variable
|
|
' ' Text.Whitespace
|
|
'-' Operator
|
|
' ' Text.Whitespace
|
|
'1' Literal.Number.Integer
|
|
'\n' Text.Whitespace
|
|
|
|
'^' Punctuation
|
|
' ' Text.Whitespace
|
|
'primes' Name.Variable
|
|
'\n\n' Text.Whitespace
|
|
|
|
'main' Keyword.Reserved
|
|
'\n' Text.Whitespace
|
|
|
|
'int' Keyword.Type
|
|
' ' Text
|
|
'max' Name.Variable
|
|
'\n' Text.Whitespace
|
|
|
|
'max' Name.Variable
|
|
' ' Text.Whitespace
|
|
'=' Operator
|
|
' ' Text.Whitespace
|
|
'1000' Literal.Number.Integer
|
|
'\n' Text.Whitespace
|
|
|
|
'bool' Keyword.Type
|
|
'[]' Punctuation
|
|
' ' Text
|
|
'primes' Name.Variable
|
|
'\n' Text.Whitespace
|
|
|
|
'primes' Name.Variable
|
|
' ' Text.Whitespace
|
|
'=' Operator
|
|
' ' Text.Whitespace
|
|
'primeSieve' Name.Function
|
|
'(' Punctuation
|
|
'max' Name.Variable
|
|
')' Punctuation
|
|
'\n\n' Text.Whitespace
|
|
|
|
'print' Keyword.Reserved
|
|
' ' Text.Whitespace
|
|
'"' Literal.String.Double
|
|
"Enter a number and I'll tell you whether or not it's prime!" Literal.String.Double
|
|
'"' Literal.String.Double
|
|
'\n' Text.Whitespace
|
|
|
|
'int' Name.Variable
|
|
' ' Text.Whitespace
|
|
'testNum' Name.Variable
|
|
'\n' Text.Whitespace
|
|
|
|
'testNum' Name.Variable
|
|
' ' Text.Whitespace
|
|
'=' Operator
|
|
' ' Text.Whitespace
|
|
'input' Keyword.Reserved
|
|
' ' Text.Whitespace
|
|
'int' Keyword.Type
|
|
'\n\n' Text.Whitespace
|
|
|
|
'/--<' Punctuation
|
|
' ' Text.Whitespace
|
|
'testNum' Name.Variable
|
|
' ' Text.Whitespace
|
|
'<' Operator
|
|
' ' Text.Whitespace
|
|
'0' Literal.Number.Integer
|
|
' ' Text.Whitespace
|
|
'or' Operator.Word
|
|
' ' Text.Whitespace
|
|
'testNum' Name.Variable
|
|
' ' Text.Whitespace
|
|
'>' Operator
|
|
' ' Text.Whitespace
|
|
'max' Name.Variable
|
|
' ' Text.Whitespace
|
|
'-' Operator
|
|
' ' Text.Whitespace
|
|
'1' Literal.Number.Integer
|
|
'\n' Text.Whitespace
|
|
|
|
'| ' Punctuation
|
|
'/--<' Punctuation
|
|
' ' Text.Whitespace
|
|
'not' Operator.Word
|
|
' ' Text.Whitespace
|
|
'primes' Name.Variable
|
|
'[' Punctuation
|
|
'testNum' Name.Variable
|
|
']' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'| | ' Punctuation
|
|
'print' Keyword.Reserved
|
|
' ' Text.Whitespace
|
|
'"' Literal.String.Double
|
|
'Prime' Literal.String.Double
|
|
'"' Literal.String.Double
|
|
'\n' Text.Whitespace
|
|
|
|
'| ' Punctuation
|
|
'\\-->' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'| ' Punctuation
|
|
'/--<' Punctuation
|
|
' ' Text.Whitespace
|
|
'primes' Name.Variable
|
|
'[' Punctuation
|
|
'testNum' Name.Variable
|
|
']' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'| | ' Punctuation
|
|
'print' Keyword.Reserved
|
|
' ' Text.Whitespace
|
|
'"' Literal.String.Double
|
|
'Not prime' Literal.String.Double
|
|
'"' Literal.String.Double
|
|
'\n' Text.Whitespace
|
|
|
|
'| ' Punctuation
|
|
'\\-->' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'\\-->' Punctuation
|
|
'\n\n' Text.Whitespace
|
|
|
|
'/--<' Punctuation
|
|
' ' Text.Whitespace
|
|
'not' Operator.Word
|
|
' ' Text.Whitespace
|
|
'(' Punctuation
|
|
'testNum' Name.Variable
|
|
' ' Text.Whitespace
|
|
'<' Operator
|
|
' ' Text.Whitespace
|
|
'0' Literal.Number.Integer
|
|
' ' Text.Whitespace
|
|
'or' Operator.Word
|
|
' ' Text.Whitespace
|
|
'testNum' Name.Variable
|
|
' ' Text.Whitespace
|
|
'>' Operator
|
|
' ' Text.Whitespace
|
|
'max' Name.Variable
|
|
' ' Text.Whitespace
|
|
'-' Operator
|
|
' ' Text.Whitespace
|
|
'1' Literal.Number.Integer
|
|
')' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'| ' Punctuation
|
|
'print' Keyword.Reserved
|
|
' ' Text.Whitespace
|
|
'"' Literal.String.Double
|
|
'Out of bounds' Literal.String.Double
|
|
'"' Literal.String.Double
|
|
'\n' Text.Whitespace
|
|
|
|
'\\-->' Punctuation
|
|
'\n' Text.Whitespace
|