Skip to content

Latest commit

 

History

History
80 lines (65 loc) · 2.51 KB

File metadata and controls

80 lines (65 loc) · 2.51 KB

QuickFort Blueprint Parser

This is a simple library for parsing basic QuickFort blueprints. Only dig blueprints are implemented. There are no plans to actively work on this project, but pull requests for new features and layer types will be accepted.

Example

Usage

<?php declare(strict_types=1);

use QuickFort\Parser\Dig;

$blueprint = <<<BLUEPRINT_END
#dig A simple dig blueprint
d,~,~,#
d,d,d,#
~,~,d,#
#,#,#,#
BLUEPRINT_END;

$parser = new Dig();
$parser->setBlueprint($blueprint);
$layers = $parser->getLayers();

Result

[
    ['d'],
    ['d', 'd', 'd'],
    [2 => 'd'],
    [],
]

Not implemented

  • Build layer
  • Place layer
  • Query layer

Links

Build Status Codacy Badge Codacy Badge

###*:::=####*:*############################
                           =++##*******++++
                              +++++++++*#++
                                -+++++++*++
                                 -#####**#+
               ......            -##*+*#+#*
           .:=====+--===..       :-#*+*#*#*
            .    :=               .*###*+#+
                 :=                .#######
                 :=                  =#*++*
                 :=  @@@%:           -+####
                 -##@@@@@@:          -++++*
                 -##@####.           =####+
                 -###@@@%-.          =###++
                 -######%@:          =###+*
                 -#####%%@-.         =*##+*
                 -####%%@@@#+.     .=***#++
                 -######@@@@%=.    .***#*++
                 -##=:::-#=---.    +#**++**
               .=#*..   .*#-     -*########
               .+##**.  .*##+..+**#####*+##
#-.:-+###.*################################
###########################################