blancas.kern.lexer.c-style

The Kern C-style Lexer library.

This namespace is a version of blancas.kern.lexer with the following settings:

comment-start        /*
comment-end          */
comment-line         //
nested-comments      No
identifier-start     Letter or _
identifier-letter    Alphanumeric or _ 
reserved-names       None
case-sensitive       Yes
line-continuation    Backslash
trim-newline         Yes

Literal values follow the rules of the C programming language.

angles

bool-lit

braces

brackets

char-lit

colon

comma

comma-sep

comma-sep1

dec-lit

dot

field

float-lit

hex-lit

identifier

lexeme

new-line

nil-lit

none-of

oct-lit

one-of

parens

semi

semi-sep

semi-sep1

string-lit

sym

token

trim

word