sexpr 1.0.0

  • Readme
  • Changelog
  • Example
  • Installing
  • 38

sexpr #

A library for generating formatted S-expressions as text.

1.0.0 #

  • Initial version.


import 'package:sexpr/sexpr.dart';

  (func $i (import "imports" "i") (param i32))
  (func (export "e") (i32.const 42))
  (call $i)
void main() {
  var module = list('module', [
    list('func', [
      list('param', ['i32']),
    list('func', [
      list('export', ['"e"']),
      list('i32.const', ['42']),
    list('call', [r'$i']),


Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  sexpr: ^1.0.0

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter pub get

Alternatively, your editor might support pub get or flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:sexpr/sexpr.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Mar 31, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.1
  • pana: 0.13.6

Health suggestions

Fix lib/sexpr.dart. (-2.48 points)

Analysis of lib/sexpr.dart reported 5 hints:

line 13 col 5: Unnecessary new keyword.

line 16 col 25: Unnecessary new keyword.

line 31 col 18: Unnecessary new keyword.

line 70 col 15: Unnecessary new keyword.

line 103 col 15: Unnecessary new keyword.

Maintenance issues and suggestions

Homepage URL doesn't exist. (-20 points)

At the time of the analysis the homepage field was unreachable.

Package is getting outdated. (-31.23 points)

The package was last published 68 weeks ago.

The package description is too short. (-3 points)

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev <3.0.0
code_buffer ^1.0.0 1.0.1
Transitive dependencies
charcode 1.1.3
collection 1.14.12
meta 1.1.8
path 1.6.4
source_span 1.7.0
term_glyph 1.1.0
Dev dependencies
test ^1.0.0