lex

Parses source, caches its symbols and compares the the cache content with the results.

  1. const(Token)[] lex(string source)
    version(unittest)
    const(Token)[]
    lex
    (
    string source
    )
  2. const(Token)[] lex(string source, string filename)

Parameters

source string

The source code to test.

Meta