symbol_table 2.0.0 copy "symbol_table: ^2.0.0" to clipboard
symbol_table: ^2.0.0 copied to clipboard

A generic symbol table implementation in Dart, with support for scopes and constants.

example/main.dart

import 'package:symbol_table/symbol_table.dart';

void main() {
  var scope = new SymbolTable<int>();
  var symbol = scope.assign('three', 3);
  print(symbol.value); // 3
  symbol.visibility = Visibility.private;

  var child = scope.createChild();
  child.create('three', value: 4);

  print(child.resolve('three').value); // 4
}
3
likes
30
pub points
5%
popularity

Publisher

unverified uploader

A generic symbol table implementation in Dart, with support for scopes and constants.

Repository (GitHub)
View/report issues

License

MIT (license)

More

Packages that depend on symbol_table