class Treetop::Compiler::CharacterClass

def grounded_regexp(string)

def grounded_regexp(string)
  # Double any backslashes, then backslash any single-quotes:
  "'\\A#{string.gsub(/\\/) { '\\\\' }.gsub(/'/) { "\\'"}}'"
end