acgessler / cpp.js Goto Github PK
View Code? Open in Web Editor NEWnode.js-compatible implementation of the C Preprocessor (cpp) in Javascript
License: Other
node.js-compatible implementation of the C Preprocessor (cpp) in Javascript
License: Other
E.g. "Witch's Scroll"
is parsed the same as "Witch"s Scroll"
.
Needless to say, this subtly breaks a lot of things.
complex test like # if defined( _VALUE1) && defined(_VALUE2) are not handled correctly.
This is due to a wrong regexp, which replace only the first occurrence :
var defined_magic_sentinel_re = /defined_magic([a-zA-Z]\w*)_/;
should be
var defined_magic_sentinel_re = /defined_magic([a-zA-Z]\w*)_/g;
great library however...
E.g. the #error at https://github.com/tgstation/tgstation/blob/8b19b490d19cc63c694d95641527cb103108b425/code/_compile_options.dm#L76 is reported as being on line 72
Considering the prototype:
settings.include_func = function(file, is_global, resumer, error) {
However,
Line 454 in e57e91c
error
undefined.main.js:
pp.run(contentsOf('main.c'), 'main.c')
main.c:
#include "subdir/a.h"
subdir/a.h:
#include "b.h" <---- attempts to access incorrect path;
include_func doesn't have enough context to resolve this on its own either
subdir/b.h:
(empty)
main.js:
pp.run(contentsOf('subdir/main.c'), 'subdir/main.c')
subdir/main.c:
#include "a.h" <---- attempts to access incorrect path;
include_func doesn't have enough context to resolve this on its own either
subdir/a.h:
(empty)
Hi, first of all - thank you a lot for this awesome library. The second - could you do a favor and publish the library as a NPM module?
I could prepare the stuff required for that, if needed.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.