from cycy import compiler
from cycy.parser.sourceparser import parse


class CyCy(object):
    """
    The main CyCy interpreter.
    """

    def run(self, bytecode):
        pass


def interpret(source):
    print "Hello, world!"
    return

    bytecode = compiler.Context.to_bytecode(parse(source.getContent()))
    CyCy().run(bytecode)

from cycy import compiler
from cycy.parser.sourceparser import parse


class CyCy(object):
    """
    The main CyCy interpreter.
    """

    def run(self, bytecode):
        pass


def interpret(source):
    bytecode = compiler.Context.to_bytecode(parse(source))
    CyCy().run(bytecode)

Break the tests to show us we're not writing RPython.
Break the tests to show us we're not writing RPython.

  from cycy import compiler
  from cycy.parser.sourceparser import parse
  
  
  class CyCy(object):
      """
      The main CyCy interpreter.
      """
  
      def run(self, bytecode):
          pass
  
  
  def interpret(source):
-     print "Hello, world!"
-     return
- 
-     bytecode = compiler.Context.to_bytecode(parse(source.getContent()))
+     bytecode = compiler.Context.to_bytecode(parse(source))
      CyCy().run(bytecode)
  
Break the tests to show us we're not writing RPython.
## Code Before:
from cycy import compiler
from cycy.parser.sourceparser import parse


class CyCy(object):
    """
    The main CyCy interpreter.
    """

    def run(self, bytecode):
        pass


def interpret(source):
    print "Hello, world!"
    return

    bytecode = compiler.Context.to_bytecode(parse(source.getContent()))
    CyCy().run(bytecode)

## Instruction:
Break the tests to show us we're not writing RPython.
## Code After:
from cycy import compiler
from cycy.parser.sourceparser import parse


class CyCy(object):
    """
    The main CyCy interpreter.
    """

    def run(self, bytecode):
        pass


def interpret(source):
    bytecode = compiler.Context.to_bytecode(parse(source))
    CyCy().run(bytecode)
