Skip to content

Commit

Permalink
Rename PredicatedAtom class to Predicate.
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoglan committed May 1, 2012
1 parent 98fc940 commit 2c7e27a
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion jake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ packages:
- canopy/compiler/char_class
- canopy/compiler/string
- canopy/compiler/ci_string
- canopy/compiler/predicated_atom
- canopy/compiler/predicate
- canopy/compiler/repeat
- canopy/compiler/sequence
- canopy/compiler/sequence_part
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Canopy.Compiler.PredicatedAtom = {
Canopy.Compiler.Predicate = {
atomic: function() {
var expression = this.atom;
return expression.parsing_expression || expression;
Expand Down
2 changes: 1 addition & 1 deletion source/canopy/meta_grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -1284,7 +1284,7 @@
if (elements0) {
this._offset = index1;
var klass2 = null;
var type0 = find(this.constructor, "PredicatedAtom");
var type0 = find(this.constructor, "Predicate");
if (type0 instanceof Function) {
klass2 = type0;
} else {
Expand Down
2 changes: 1 addition & 1 deletion source/canopy/meta_grammar.peg
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ grammar Canopy.MetaGrammar
/ char_class_expression

predicated_atom <- predicate:("&" / "!") atom
<PredicatedAtom>
<Predicate>

reference_expression <- identifier !assignment <Reference>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Canopy.Compiler.PredicatedAtomSpec = JS.Test.describe("Canopy.Compiler.PredicatedAtom",
Canopy.Compiler.PredicateSpec = JS.Test.describe("Canopy.Compiler.Predicate",
function() { with(this) {
include(Canopy.SpecHelper)

Expand Down
2 changes: 1 addition & 1 deletion spec/runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ JS.require('JS.Test', function() {
'Canopy.Compiler.AnyCharSpec',
'Canopy.Compiler.CharClassSpec',
'Canopy.Compiler.StringSpec',
'Canopy.Compiler.PredicatedAtomSpec',
'Canopy.Compiler.PredicateSpec',
'Canopy.Compiler.RepeatSpec',
'Canopy.Compiler.SequenceSpec',
'Canopy.Compiler.ChoiceSpec',
Expand Down

0 comments on commit 2c7e27a

Please sign in to comment.