Documentation
Requirements
- D2 compiler (any recent) using svn gdc
- Phobos
- For now no build manager needed, but I recommend using xfbuild or using the code-blocks project(new version)
Building
Until a build system is set, just do (gdc | dmd) over all files
dmd -version=phobos2 *.d
#or alternatively if you use gdc
gdc -fversion=phobos2 *.d Alternatively you can compile the project using codeblocks
File structure
Most file have a i and a plain versions. IE:
token.d itoken.d
This corresponds to interface and implementation. This is useful to have if there are many versions of each part.
file guide
ibase
contains base definitions and the stream interface
base
contains the implementation of stream interface
itoken
This haves the implementations and definitions of Tokens and separating in tokens
token
Expd implementation of token identifier.
Expd tokenising uses the concept of modes. A mode is a way the compiler processes a string.For example it haves a quoted mode which corresponds to string literals
At the top-most level, it recognises ( ) " '. Then it recognise 'words', (spaced tokens) like $ abcd cons etc.
test
WIP test aplicaiton