Skip to content

Library for parsergen & scannergen to scan [[...]] annotations out of syntax rules.

License

Notifications You must be signed in to change notification settings

buck-yeh/CBrackets

Repository files navigation

Brief

Library to scan doubly-bracketed values in form of [[...]]

  1. from annotated production rules of parsergen's input:
    <Line> ::= <NewLexIds>              [[]]
    <Line> ::= <OperatorAssociation>    [[
        auto &c = $c;
        if (!c.testCond())
            return;
    
        $1.m_attr.disown(); // not a pointer
        c.incWeight();
    ]]
  2. from option definitions of both parsergen and scannergen's inputs:
    %HEADERS_FOR_CPP     [[
    #include "ParserIdDef.h"
    
    // %HEADERS_FOR_SCANNER_CPP expanded BEGIN
    #include "BracketBalance.h"
    // %HEADERS_FOR_SCANNER_CPP expanded END
    ]]

About

Library for parsergen & scannergen to scan [[...]] annotations out of syntax rules.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published