Wrench.Highlight
Description
Line-by-line syntax highlighting for assembler sources and simulation reports. Concatenating the token texts gives back the original line.
data TokenKind Source #
Constructors
Defined in Wrench.Highlight
Methods
showsPrec :: Int -> TokenKind -> ShowS #
show :: TokenKind -> String #
showList :: [TokenKind] -> ShowS #
(==) :: TokenKind -> TokenKind -> Bool #
(/=) :: TokenKind -> TokenKind -> Bool #
tokenizeLine :: Isa -> Text -> [(TokenKind, Text)] Source #
tokenizeReportLine :: Isa -> Text -> [(TokenKind, Text)] Source #
Tokens for simulation log, memory dump and statistics lines.