Added support for lexing Dlt files
commit465196158510e29777aec61daa4111c5087c44e8
authorThomas Leonard <talex5@gmail.com>
Wed, 17 Sep 2008 10:23:02 +0000 (17 11:23 +0100)
committerThomas Leonard <talex5@gmail.com>
Wed, 17 Sep 2008 10:38:01 +0000 (17 11:38 +0100)
treeed7979fbe2980ba9ac865cdd635b88b961022050
parent175fbb7a31ae33ac140f50b1a7a787267b8cdde7
Added support for lexing Dlt files

Keeps track of indentation. Each : increases the current level.
Each non-blank, non-comment line whose indent is less than the
current level generates end-of-block tokens.

Allow "# Comment" syntax from Python.

Added new tokens: "and", "or", "not", "reversed", "@"
dmd/doc.c
dmd/lexer.c
dmd/lexer.h
dmd/parse.c