ethanblake4 / dart_eval

Extensible Dart interpreter for Dart with full interop
https://pub.dev/packages/dart_eval
BSD 3-Clause "New" or "Revised" License
334 stars 40 forks source link

how to add support of binary operators #140

Closed Noobware1 closed 1 year ago

Noobware1 commented 1 year ago

@ethanblake4 i wanna add this ~/ operator can you tell me the steps?

ethanblake4 commented 1 year ago

Yeah that's pretty easy. Add the token type in binary.dart, declare the method in builtins.dart, and add the implementation to the $int class in num.dart.

Noobware1 commented 1 year ago

Added it thanks.