Skip to content

Commit

Permalink
rename empty_string rule to 'EMPTY_STRING'
Browse files Browse the repository at this point in the history
  • Loading branch information
smtlaissezfaire committed Jan 30, 2009
1 parent d5b7f6f commit 4e80845
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions lib/guillotine/parser/sql_delete.treetop
Expand Up @@ -41,15 +41,15 @@ module Guillotine
end

rule optional_low_priority
low_priority / empty_string
low_priority / EMPTY_STRING
end

rule optional_quick
quick / empty_string
quick / EMPTY_STRING
end

rule optional_ignore
ignore / empty_string
ignore / EMPTY_STRING
end

rule ignore
Expand Down
8 changes: 4 additions & 4 deletions lib/guillotine/parser/sql_helpers.treetop
Expand Up @@ -8,18 +8,18 @@ module Guillotine
end
}
/
empty_string
EMPTY_STRING
end

rule limit_condition_or_empty
SPACE limit { def eval; limit.eval; end } / empty_string
SPACE limit { def eval; limit.eval; end } / EMPTY_STRING
end

rule order_by_condition_or_empty
SPACE order_by { def eval; order_by.eval; end } / empty_string
SPACE order_by { def eval; order_by.eval; end } / EMPTY_STRING
end

rule empty_string
rule EMPTY_STRING
'' { def eval; nil; end }
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/guillotine/parser/sql_order_by_clause.treetop
Expand Up @@ -38,7 +38,7 @@ module Guillotine
end

rule optional_sort_condition
SPACE sort_condition { def eval; sort_condition.eval; end } / empty_string
SPACE sort_condition { def eval; sort_condition.eval; end } / EMPTY_STRING
end

rule sort_condition
Expand Down

0 comments on commit 4e80845

Please sign in to comment.