sexpr 1.0.0

sexpr #

A library for generating formatted S-expressions as text.

1.0.0 #

  • Initial version.

example/main.dart

import 'package:sexpr/sexpr.dart';

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

  print(module);
}

Use this package as a library

1. Depend on it

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


dependencies:
  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';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
0
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
77
Overall:
Weighted score of the above. [more]
45
Learn more about scoring.

We analyzed this package on Jul 15, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.4.0
  • pana: 0.12.19

Platforms

Detected platforms: Flutter, web, other

No platform restriction found in primary library package:sexpr/sexpr.dart.

Maintenance issues and suggestions

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

At the time of the analysis the homepage field https://github.com/thosakwe/dart2wasm/tree/master/sexpr was unreachable.

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.

Dependencies

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.2
path 1.6.2
source_span 1.5.5
term_glyph 1.1.0
Dev dependencies
test ^1.0.0

Admin