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
}
copied to clipboard
3
likes
40
points
39
downloads

Publisher

unverified uploader

Weekly Downloads

2024.09.23 - 2025.04.07

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

Homepage

License

MIT (license)

More

Packages that depend on symbol_table