irishman 1.0.6 copy "irishman: ^1.0.6" to clipboard
irishman: ^1.0.6 copied to clipboard

discontinued
outdated

A generic programming language interpreter, linter, formatter, and all that jazz, written in Dart.

example/irishman_example.dart

import 'package:irishman/irishman.dart';

void main() {
  var language = Language.fromJSONFile("./example/simple-lang.json");
  var tokenizer = language.getTokenizer();

  print("# ${language.emoji} ${language.name}");
  print(language.description);

  const code =
      "int i = 0x00; repeat { print(\"Hello World\"); i++; if (i > 500) { stop; } }";

  print("");
  print("The output to `$code` is:");
  print(tokenizer
      .tokenizeString(code)
      .map((e) => "${e.tokenName}:\"${e.data}\"")
      .join(", "));
}
2
likes
0
points
48
downloads

Publisher

verified publisherfairfieldprogramming.org

Weekly Downloads

A generic programming language interpreter, linter, formatter, and all that jazz, written in Dart.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

More

Packages that depend on irishman