Skam uses an xml-like syntax (similar to apache-style config files) to embed data, scripts and rules

Embedding scripts

<script name="word_idx" lang="perl">
while(<>) {
  $widx{$_}++ foreach split(/\W+/);
print "$_\n" foreach sort keys %widx;
exit 0;

Note that you do not need to escape XML characters such as

  req: File
  srun: script(word_idx) File
  flat: File.wi

Embedding relations

Embedding prolog rules