Skip to content

Commit

Permalink
renamed ruleset to grammar
Browse files Browse the repository at this point in the history
  • Loading branch information
rcnlee committed Sep 2, 2017
1 parent cb04039 commit 069d4ca
Show file tree
Hide file tree
Showing 3 changed files with 146 additions and 146 deletions.
6 changes: 3 additions & 3 deletions examples/grammar.ipynb
Expand Up @@ -19,7 +19,7 @@
{
"data": {
"text/plain": [
"ExprRules.RuleSet(Any[:x, :(Real * Real), :(f(Real)), :(_(Base.rand(1.0:5.0))), :A, :B, :(g(Real)), 1, 2, 3, 4, 5, 6, 7, 8, 9], Symbol[:Real, :Real, :Real, :Real, :Real, :Real, :Real, :Real, :Real, :Real, :Real, :Real, :Real, :Real, :Real, :Real], Bool[true, false, false, true, true, true, false, true, true, true, true, true, true, true, true, true], Bool[false, false, false, true, false, false, false, false, false, false, false, false, false, false, false, false], Dict(:Real=>[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16]))"
"ExprRules.Grammar(Any[:x, :(Real * Real), :(f(Real)), :(_(Base.rand(1.0:5.0))), :A, :B, :(g(Real)), 1, 2, 3, 4, 5, 6, 7, 8, 9], Symbol[:Real, :Real, :Real, :Real, :Real, :Real, :Real, :Real, :Real, :Real, :Real, :Real, :Real, :Real, :Real, :Real], Bool[true, false, false, true, true, true, false, true, true, true, true, true, true, true, true, true], Bool[false, false, false, true, false, false, false, false, false, false, false, false, false, false, false, false], Dict(:Real=>[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16]))"
]
},
"execution_count": 2,
Expand All @@ -28,7 +28,7 @@
}
],
"source": [
"ruleset = @ruleset begin\n",
"grammar = @grammar begin\n",
" Real = x\n",
" Real = Real * Real\n",
" Real = f(Real)\n",
Expand Down Expand Up @@ -73,7 +73,7 @@
}
],
"source": [
"ruleset.rules"
"grammar.rules"
]
},
{
Expand Down

0 comments on commit 069d4ca

Please sign in to comment.