Skip to content
Snippets Groups Projects
Commit 735cd7d3 authored by Nicolas Voirol's avatar Nicolas Voirol
Browse files

Some work on GrammarDataGen

parent 23e2fd89
No related branches found
No related tags found
No related merge requests found
...@@ -13,9 +13,13 @@ import grammars._ ...@@ -13,9 +13,13 @@ import grammars._
/** Utility functions to generate values of a given type. /** Utility functions to generate values of a given type.
* In fact, it could be used to generate *terms* of a given type, * In fact, it could be used to generate *terms* of a given type,
* e.g. by passing trees representing variables for the "bounds". */ * e.g. by passing trees representing variables for the "bounds". */
trait GrammarDataGen extends DataGenerator { trait GrammarDataGen extends DataGenerator with GrammarsUniverse { self =>
val evaluator: DeterministicEvaluator { val program: GrammarDataGen.program.type } val evaluator: DeterministicEvaluator { val program: self.program.type }
val grammar: ExpressionGrammar = ValueGrammar val grammar: ExpressionGrammar
import program._
import program.trees._
import program.symbols._
// Assume e contains generic values with index 0. // Assume e contains generic values with index 0.
// Return a series of expressions with all normalized combinations of generic values. // Return a series of expressions with all normalized combinations of generic values.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment