Skip to content

Migrate examples to the new compiler - #258

Draft
ageron wants to merge 15 commits into
roc-lang:mainfrom
ageron:migrate-to-new-roc
Draft

Migrate examples to the new compiler#258
ageron wants to merge 15 commits into
roc-lang:mainfrom
ageron:migrate-to-new-roc

Conversation

@ageron

@ageron ageron commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

This PR aims to migrate all examples to the new compiler, starting with the examples that can run on the echo platform, without any library dependency:

  • AllSyntax
  • BasicDict
  • CommandLineArgs
  • CustomInspect
  • ErrorHandlingBasic
  • FizzBuzz
  • GraphTraversal
  • HelloWorld
  • ImportFromDirectory
  • IngestFiles
  • Json
  • LeastSquares
  • MultiLineComments (no change required)
  • MultipleRocFiles
  • PatternMatching
  • SafeMath
  • TowersOfHanoi
  • TryOperatorDesugaring
  • Tuples

Edit: also migrated the following examples which depend on the basic-cli platform and a few libraries:

  • CommandLineArgsFile
  • Commands
  • ErrorHandlingRealWorld
  • ImportPackageFromModule (uses the unicode library)
  • LoopEffect
  • Parser (uses the parser library)
  • RandomNumbers (uses the rand library)
  • Snake

The following examples were dropped (possibly temporarily):

  • DotNetPlatform
  • GoPlatform
  • Scripting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant