Cache.ms
- 依存
struct CacheStruct
メモ化のためのキャッシュデータ。
private data
- プロパティ
<Dictionary Key:<String> Value:<Any>>
public fn Clear
キャッシュをクリアする。
- 戻り値
<OkClass>
public fn Read
パース結果をキャッシュから読み取る。
- パラメータ
parser<Struct>メモ化対象のパーサのインスタンス。
- パラメータ
start<Integer>開始位置。
- 戻り値
<DataPair Hit:<BooleanClass> Cache:<DataPair End:<Integer> Value:<Any>|UndefinedClass>>キャッシュが存在した場合は
Hitがtrueになる。
public fn Write
パース結果をキャッシュに書き込む。
- パラメータ
parser<Struct>メモ化対象のパーサのインスタンス。
- パラメータ
start<Integer>開始位置。
- パラメータ
end<Integer>終了位置。
- パラメータ
result<Any>メモ化対象のパーサのパース結果。
- 戻り値
<OkClass>
private fn generateKey
- パラメータ
parser<Struct>
- パラメータ
start<Integer>
- 戻り値
<String>
public fn StructName
- 戻り値
<Name>
public fn Dump
- パラメータ
indent:<String>
- パラメータ
out:<FileStream|StringStream|WindowStream>出力先。既定値は
listener。
- 戻り値
<OkClass>
public fn Equals
- パラメータ
obj<Any>
- 戻り値
<BooleanClass>
- 補足
大文字と小文字を区別する。