Permalink
Switch branches/tags
works strj/2009-passes-strc1-tests strj/2008-with-dedicated-runtime strj/release-140728 strj/release-130208 strj/release-130207 strategoxt/xtc-experimental strategoxt/java-bootstrap/bootstraps strategoxt/StrategoXT strategoxt/StrategoXT-0.14 strategoxt/StrategoXT-0.13 strategoxt/StrategoXT-0.12 strategoxt/StrategoXT-0.11 strategoxt/StrategoXT-0.10 strategoxt/StrategoXT-0.9.5 strategoxt/StrategoXT-0.9.4 strategoxt/StrategoXT-0.9.3 strategoxt/StrategoXT-0.9.2 strategoxt/StrategoXT-0.9.1 spoofax-release/2.5.1 spoofax-release/2.5.0 spoofax-release/2.4.1 spoofax-release/2.4.0 spoofax-release/2.3.0 spoofax-release/2.2.1 spoofax-release/2.2.0 spoofax-release/2.1.0 spoofax-release/2.0.0 spoofax-release/2.0.0-beta1 spoofax-release/1.5.0 spoofax-release/1.4.2 spoofax-release/1.4.1 spoofax-release/1.4.0 spoofax-release/1.3.1 spoofax-release/1.3 spoofax-release/1.2 partition-incremental-tasks incremental-declarative completions-sle-artifact baselines/baseline-20150113 baselines/baseline-20140618 baselines/baseline-20140528 baselines/baseline-20131114 baseline baseline-2 baseline-1 backups/strj/strategoxt-java-backend-new-terms@21825 backups/strategoxt/strategoxt-with@18242 backups/strategoxt/stratego-shell-plain-stack@14017 backups/strategoxt/sdf2-bundle-2.2@7975 backups/strategoxt/sdf2-bundle-2.1@7976 backups/strategoxt/sdf2-bundle-2.1@6370 backups/strategoxt/reimplementing-koala-tools@14014 backups/strategoxt/autobundle-timed-dependencies@14016 backups/strategoxt/TECHREPORT@4249 archive/unique-namegen archive/typesmart archive/typesmart-library archive/taskengine-stack archive/task-library archive/separate-depfail archive/prop-lists archive/no-list-results archive/new-spoofax-plugin archive/new-generator archive/nabl-uri-use archive/mvn-build archive/metrics archive/measure-task-time archive/master-working archive/lib-compilation archive/less-hashmaps archive/lazy-choice archive/java-task-lib archive/java-bootstrap archive/java-bootstrap-no-index archive/interop-to-primitive archive/index-ds-refactor archive/index-cleanup archive/incremental-analysis-evaluation archive/import-transitive-closure archive/higher-order-tasks archive/guwac archive/filtering-use archive/efficient-relation-lookup archive/early-validation archive/delay-current archive/cycle-fixpoint archive/collect-existing-annotations archive/cleanup-2 archive/cleanup-1 archive/bootstrap-pre-isolated-builds archive/better-resolveall archive/better-proplookup archive/better-evaluation-abstraction archive/analysis-cleanup Bootstrapping-and-Tests-successful
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (18 sloc) 734 Bytes
module Stratego-Box
imports Box StrategoRenamed
hiddens
context-free start-symbols StrategoModule
exports
context-free syntax
BOX -> StrategoTerm {cons("ToTerm"), avoid}
"|[" BOX "]|" -> StrategoTerm {cons("ToTerm"), prefer}
"box" "|[" BOX "]|" -> StrategoTerm {cons("ToTerm")}
"|[" BOX* "]|" -> StrategoTerm {cons("ToTerm")}
"box*" "|[" BOX* "]|" -> StrategoTerm {cons("ToTerm")}
"~" StrategoTerm -> BOX {cons("FromTerm"), prefer}
"~*" StrategoTerm -> BOX* {cons("FromTerm"), prefer}
"~lit:" StrategoTerm -> BoxLiteral {cons("FromTerm"), prefer}
variables
"b" [0-9]* -> BOX
"b" [0-9]* "*" -> BOX*
"s" [0-9]* -> BoxLiteral