Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
inox
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LARA
inox
Commits
735cd7d3
Commit
735cd7d3
authored
8 years ago
by
Nicolas Voirol
Browse files
Options
Downloads
Patches
Plain Diff
Some work on GrammarDataGen
parent
23e2fd89
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/scala/inox/datagen/GrammarDataGen.scala
+7
-3
7 additions, 3 deletions
src/main/scala/inox/datagen/GrammarDataGen.scala
with
7 additions
and
3 deletions
src/main/scala/inox/datagen/GrammarDataGen.scala
+
7
−
3
View file @
735cd7d3
...
@@ -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.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment