I like Codea for iOS, though the free version has a soft-limit at 500 lines. If a project gets bigger than 500 lines you can still run code but it'll nag you to upgrade.