https://github.com/timo/app-moarvm-confprogcompiler
Compiles Configuration Program snippets for use with nqp or perl6 on MoarVM
https://github.com/timo/app-moarvm-confprogcompiler
Last synced: 5 months ago
JSON representation
Compiles Configuration Program snippets for use with nqp or perl6 on MoarVM
- Host: GitHub
- URL: https://github.com/timo/app-moarvm-confprogcompiler
- Owner: timo
- License: artistic-2.0
- Created: 2019-06-14T19:45:16.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-10-27T16:17:27.000Z (over 6 years ago)
- Last Synced: 2025-04-10T01:18:09.533Z (about 1 year ago)
- Language: Perl 6
- Homepage:
- Size: 50.8 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: Changes
- License: LICENSE
Awesome Lists containing this project
README
[](https://travis-ci.org/timo/App-MoarVM-ConfprogCompiler)
NAME
====
App::MoarVM::ConfprogCompiler - Compiler for MoarVM's confprog subsystem
SYNOPSIS
========
```perl6
use App::MoarVM::ConfprogCompiler;
ConfprogCompiler.compile($sourcecode);
```
confprog-compile -e="version = 1; entry profiler_static: profile = choice(1, 2, 3, 4); log = "hello";' -o=example.mvmconfprog
perl6 --confprog=example.mvmconfprog --profile -e '.say for (^100_000).grep(*.is-prime).tail(5)'
DESCRIPTION
===========
`App::MoarVM::ConfprogCompiler` will parse a domain-specific language for defining the behavior of specific pluggable moarvm subsystems, such as the instrumented or heapsnapshot profiler.
A commandline utility named `confprog-compile` is provided that takes a program as a filename or a literal string and outputs a hexdump (compatible with xxd -r) or to an output file passed on the commandline.
AUTHOR
======
Timo Paulssen
COPYRIGHT AND LICENSE
=====================
Copyright 2019 Timo Paulssen
This library is free software; you can redistribute it and/or modify it under the Artistic License 2.0.