simplepy 1.3.0 copy "simplepy: ^1.3.0" to clipboard
simplepy: ^1.3.0 copied to clipboard

An interpreter for a subset of the Python language, written purely in Dart. It is intended for adding scripting capabilities to Dart projects and for educational purposes.

1.3.0 #

  • added globaland nonlocalstatements
  • added single-line if/elif/else, for, while and def (e.g. def f(x): return 42 without newline)
  • enabled line continuation: Function calls, expressions or other code can now span multiple lines as long as there is an unclosed parenthesis () or [] or {}
  • added multiline strings and multiline f-strings, e.g. x="""2\n{3+4}"""
  • added implicit string and f-string concatenation (without + between string literals)
  • added list/set/dict comprehensions
  • added list/tuple/string slices (read only, no assignment so far)

1.2.1 #

  • improve package description and fix linter warnings

1.2.0 #

  • first public version

Internal hersions before publishing #

1.1.5 #

  • added f-strings: [[fill]align][sign][0][width][.precision][dfs] #, and types b/o/x/e/g/% are not yet supported.
  • interpreter now returns value of last evaluated expression

1.1.4 #

  • added set and tuple

1.1.3 #

  • added built-in methods for list (but not list.sort() yet), dict, str

1.1.2 #

  • added lambda functions

1.1.1 #

  • added scientific float notation, e.g. 1.6e-19.

1.1.0 #

  • added classes. Class attributes and multiple inheritance are not yet supported.

1.0.1 #

  • accept 0x, 0b, 0o prefixes for integers
  • added some built-in functions: len(), str(), repr(), int(), float(), bool(), type(), list(), dict(), abs(), round(), min(), max(), sum()

1.0.0 #

  • Initial version.
0
likes
150
points
253
downloads

Publisher

unverified uploader

Weekly Downloads

An interpreter for a subset of the Python language, written purely in Dart. It is intended for adding scripting capabilities to Dart projects and for educational purposes.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

More

Packages that depend on simplepy