- advance
void advance(Token[] tokens, Types types)
Undocumented in source. Be warned that the author may not have intended to support it.
- binop
int[string] binop(int[string] dim1, int[string] dim2)
Undocumented in source. Be warned that the author may not have intended to support it.
- check
void check(Token[] tokens, Types types)
Undocumented in source. Be warned that the author may not have intended to support it.
- exp
int[string] exp(int[string] dim, int value)
Undocumented in source. Be warned that the author may not have intended to support it.
- expInv
int[string] expInv(int[string] dim, int value)
Undocumented in source. Be warned that the author may not have intended to support it.
- lex
Token[] lex(string input)
Undocumented in source. Be warned that the author may not have intended to support it.
- makeSymbolList
SymbolList!N makeSymbolList(Sym list)
Helps build a SymbolList at compile-time.
- parseRTQuantity
RTQuantity!N parseRTQuantity(S str, SL symbolList)
Undocumented in source. Be warned that the author may not have intended to support it.
- toRT
auto toRT(Q quantity)
Undocumented in source. Be warned that the author may not have intended to support it.
- withPrefix
auto withPrefix(string symbol, N factor)
Creates a prefix that can be added to a SymbolList via the SymbolList constuctor.
- withUnit
auto withUnit(string symbol, Q unit)
Creates a unit that can be added to a SymbolList via the SymbolList constuctor.
This module defines functions to parse units and quantities. The text input is parsed according to the following grammar. For example:
Grammar: (whitespace not significant)