SymbolStream

Represents stream of symbols - stream produces one symbol by request

Constructors

this
this(string fileName)
Undocumented in source.
this
this()
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

read
char read()

Get next symbol in stream

readChar
char readChar()

Read one symbol from file and store it to lastChar

Properties

eof
bool eof [@property getter]

If true then stream ended

indent
int indent [@property getter]

Current indent - count of tabs relative to the start of the line

lastChar
char lastChar [@property getter]

The last given symbol

line
int line [@property getter]

Current line in file

pos
int pos [@property getter]

Current position in line in file

tabSize
int tabSize [@property getter]

Size of one tab - count of spaces for one indent

Meta