Advertisement
Guest User

Untitled

a guest
Mar 20th, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. // A grammar is a set of production rules for strings in a given
  2. // languages. In this case, the grammar is a function from a
  3. // character to its successor, and is defined inductively through
  4. // some optimization process.
  5. type IGrammar =
  6. abstract member Continue: string -> string
  7. abstract member Entropy: string -> float
  8. abstract member Mutate: int -> unit
  9. abstract member Clone: unit -> IGrammar
  10. abstract member Compress: unit -> int list
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement