Giter Site home page Giter Site logo

magicport2's People

Contributors

burner avatar yebblies avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

magicport2's Issues

building from newmagic branch

As in title, i'm building from newmagic branch in your dmd fork, using win32.mak ddmd (this was just a convenient place to raise issue).

Had some issues building:

https://github.com/D-Programming-Language/dmd/blob/master/src/mars.c#L142 has an #include directive in the expression, which the magicport parser doesn't like. I hard-coded a version to work around.

Some string literals like: https://github.com/D-Programming-Language/dmd/blob/master/src/doc.c#L132 have unterminated back-slashes, to escape the line endings. DMD didn't like it, so in dprinter.d, I added a string escaper to the LitExpr visitor:

override void visit(LitExpr ast)
{
    if (ast.val.endsWith("L", "l"))
    {
        print(ast.val[0..$-1]);
    } else {        
        print(escapeBackslash(ast.val));
    }
}

auto escapeBackslash(string s) {
    import std.regex;   
    return s.replaceAll(regex(`\\\r\n`), ``);
}

which doesn't actually escape the string, it just removes the unterminated char constants.

Anyhoo, I'm wondering how you build this make target, if you are not seeing these issues, or is magicport in the newmagic branch not up to date, or am I missing some dmd patches?

cheers

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.