some things
parent
53668f770e
commit
9e8135ee05
@ -0,0 +1 @@
|
|||||||
|
#lang racket/base
|
@ -0,0 +1,14 @@
|
|||||||
|
#lang racket/base
|
||||||
|
|
||||||
|
(require parser-tools/lex
|
||||||
|
(prefix-in : parser-tools/lex-sre))
|
||||||
|
|
||||||
|
(provide default-lexer)
|
||||||
|
|
||||||
|
|
||||||
|
(define default-lexer
|
||||||
|
(lexer
|
||||||
|
[(eof) (values lexeme 'eof #f #f #f)]
|
||||||
|
[(:seq "//" (:* (char-complement "\n")))
|
||||||
|
(values lexeme 'comment #f (position-offset start-pos) (position-offset end-pos))]
|
||||||
|
[any-char (values lexeme 'no-color #f (position-offset start-pos) (position-offset end-pos))]))
|
Loading…
Reference in New Issue