Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

gbdev

gbdev community
Collective - Host: opensource - https://opencollective.com/gbdev - Website: https://gbdev.io/ - Code: https://github.com/gbdev

Merge pull request #557 from ISSOtm/new-lexer-electric-boogaloo

New lexer 2 — Electric Boogaloo

github.com/gbdev/rgbds-deb - 3036b5859894be1bc4523d7e309fca5015728679 authored about 4 years ago by Eldred Habert <[email protected]>
Fix critical oversight in lexer buffer refilling

Since the lexer buffer wraps, the refilling gets handled in two steps:
First, iff the buffer wou...

github.com/gbdev/rgbds-deb - 2eca43cd2da5a4be21cada359bd5e152f1896453 authored about 4 years ago by ISSOtm <[email protected]>
Fix critical oversight in lexer buffer refilling

Since the lexer buffer wraps, the refilling gets handled in two steps:
First, iff the buffer wou...

github.com/gbdev/rgbds - 2eca43cd2da5a4be21cada359bd5e152f1896453 authored about 4 years ago by ISSOtm <[email protected]>
Fix range-dependent dead code in recursion depth check

github.com/gbdev/rgbds - 96cb5e10ed87e7f072f9f98440a4139a13ba013d authored about 4 years ago by ISSOtm <[email protected]>
Fix possible capture buffer size overflow

Attempt to grow it to the max size first.
Seriously, if this triggers, *how*

github.com/gbdev/rgbds - 542b5d18f1307f23104bdc52fed03ad249895c1c authored about 4 years ago by ISSOtm <[email protected]>
Fix C2x use of `static_assert`

github.com/gbdev/rgbds - 71a0a42cfb482929834973fd206f5dcc1bdbdaae authored about 4 years ago by ISSOtm <[email protected]>
Use common function to discard comments in macro args

github.com/gbdev/rgbds - ac011fe69f009152eb3bc87707d6140620995547 authored about 4 years ago by ISSOtm <[email protected]>
Fix fixed-point constants not working correctly

And added a test to check their behavior

github.com/gbdev/rgbds - c952dd8a6e1837ebfbcb5ade04f7d66cefa38cbd authored about 4 years ago by ISSOtm <[email protected]>
Move `isWhitespace` to a place where it makes more sense

github.com/gbdev/rgbds - dbef51ba052ff9d98fbed87f36b53e5a2d4af074 authored about 4 years ago by ISSOtm <[email protected]>
Remove unnecessarily nested symbol data union

github.com/gbdev/rgbds - 7381d7b92fa21cce3c086cb01199036053687078 authored about 4 years ago by ISSOtm <[email protected]>
Change assertion condition in __FILE__ buf dumping

Removes a false positive from Clang static analysis

github.com/gbdev/rgbds - ee9e45b3d45f0b6f4342159ec75179df503fdc29 authored about 4 years ago by ISSOtm <[email protected]>
Add newlines to all test output

MacOS treats them differently, for some reason.

github.com/gbdev/rgbds - b65ea64a583855ae69b685e3c094d0697d86b2c3 authored about 4 years ago by ISSOtm <[email protected]>
Move some MSVC-specific defines to `platform.h`

github.com/gbdev/rgbds - 8e7afb0ab38aa80464317774a5166e09bd5aa084 authored about 4 years ago by ISSOtm <[email protected]>
Fix possible uninitialized read on Windows

github.com/gbdev/rgbds - 138523570e1b8a6a4e45f5c64a4335807c37c657 authored about 4 years ago by ISSOtm <[email protected]>
Harmonize printing `distance`

github.com/gbdev/rgbds - b224cab3e052e79ee8628ed896d4350765e1b75d authored about 4 years ago by ISSOtm <[email protected]>
Implement compact file stacks in object files

Gets rid of `open_memstream`, enabling Windows compatibility again
Also fixes #491 as a nice bonus!

github.com/gbdev/rgbds - 5a65188ca94f2ebaa6ffabac4e7d04cb166de4d6 authored about 4 years ago by ISSOtm <[email protected]>
Mark not unmapping macro-containing files as okay

There isn't really a better alternative.
Making several mappings instead requires too much bookk...

github.com/gbdev/rgbds - 930080f556fc5ac7c41a1e5e05e8ab01e1789142 authored about 4 years ago by ISSOtm <[email protected]>
Fix incomplete duplication of REPT nodes

"Initialization, sizeof, and the assignment operator ignore the flexible array member."
Oops!

github.com/gbdev/rgbds - c24694233f5f1103a33d3476f44cf47099936a84 authored about 4 years ago by ISSOtm <[email protected]>
Handle \\r better

Translate it to \\n regardless of the lexer mode

github.com/gbdev/rgbds - 423a7c48994fc9430960f83955d6697d484e342a authored about 4 years ago by ISSOtm <[email protected]>
Shim around `mmap` on Windows

github.com/gbdev/rgbds - 82469ac0fde1b2e73bfbfc58853a7ecb95e4a794 authored about 4 years ago by ISSOtm <[email protected]>
Use common function to discard comments in macro args

github.com/gbdev/rgbds-deb - ac011fe69f009152eb3bc87707d6140620995547 authored about 4 years ago by ISSOtm <[email protected]>
Shim around `mmap` on Windows

github.com/gbdev/rgbds-deb - 82469ac0fde1b2e73bfbfc58853a7ecb95e4a794 authored about 4 years ago by ISSOtm <[email protected]>
Fix incomplete duplication of REPT nodes

"Initialization, sizeof, and the assignment operator ignore the flexible array member."
Oops!

github.com/gbdev/rgbds-deb - c24694233f5f1103a33d3476f44cf47099936a84 authored about 4 years ago by ISSOtm <[email protected]>
Change assertion condition in __FILE__ buf dumping

Removes a false positive from Clang static analysis

github.com/gbdev/rgbds-deb - ee9e45b3d45f0b6f4342159ec75179df503fdc29 authored about 4 years ago by ISSOtm <[email protected]>
Handle \\r better

Translate it to \\n regardless of the lexer mode

github.com/gbdev/rgbds-deb - 423a7c48994fc9430960f83955d6697d484e342a authored about 4 years ago by ISSOtm <[email protected]>
Implement compact file stacks in object files

Gets rid of `open_memstream`, enabling Windows compatibility again
Also fixes #491 as a nice bonus!

github.com/gbdev/rgbds-deb - 5a65188ca94f2ebaa6ffabac4e7d04cb166de4d6 authored about 4 years ago by ISSOtm <[email protected]>
Fix range-dependent dead code in recursion depth check

github.com/gbdev/rgbds-deb - 96cb5e10ed87e7f072f9f98440a4139a13ba013d authored about 4 years ago by ISSOtm <[email protected]>
Fix fixed-point constants not working correctly

And added a test to check their behavior

github.com/gbdev/rgbds-deb - c952dd8a6e1837ebfbcb5ade04f7d66cefa38cbd authored about 4 years ago by ISSOtm <[email protected]>
Add newlines to all test output

MacOS treats them differently, for some reason.

github.com/gbdev/rgbds-deb - b65ea64a583855ae69b685e3c094d0697d86b2c3 authored about 4 years ago by ISSOtm <[email protected]>
Move `isWhitespace` to a place where it makes more sense

github.com/gbdev/rgbds-deb - dbef51ba052ff9d98fbed87f36b53e5a2d4af074 authored about 4 years ago by ISSOtm <[email protected]>
Fix possible capture buffer size overflow

Attempt to grow it to the max size first.
Seriously, if this triggers, *how*

github.com/gbdev/rgbds-deb - 542b5d18f1307f23104bdc52fed03ad249895c1c authored about 4 years ago by ISSOtm <[email protected]>
Mark not unmapping macro-containing files as okay

There isn't really a better alternative.
Making several mappings instead requires too much bookk...

github.com/gbdev/rgbds-deb - 930080f556fc5ac7c41a1e5e05e8ab01e1789142 authored about 4 years ago by ISSOtm <[email protected]>
Harmonize printing `distance`

github.com/gbdev/rgbds-deb - b224cab3e052e79ee8628ed896d4350765e1b75d authored about 4 years ago by ISSOtm <[email protected]>
Remove unnecessarily nested symbol data union

github.com/gbdev/rgbds-deb - 7381d7b92fa21cce3c086cb01199036053687078 authored about 4 years ago by ISSOtm <[email protected]>
Fix C2x use of `static_assert`

github.com/gbdev/rgbds-deb - 71a0a42cfb482929834973fd206f5dcc1bdbdaae authored about 4 years ago by ISSOtm <[email protected]>
Move some MSVC-specific defines to `platform.h`

github.com/gbdev/rgbds-deb - 8e7afb0ab38aa80464317774a5166e09bd5aa084 authored about 4 years ago by ISSOtm <[email protected]>
Fix possible uninitialized read on Windows

github.com/gbdev/rgbds-deb - 138523570e1b8a6a4e45f5c64a4335807c37c657 authored about 4 years ago by ISSOtm <[email protected]>
Prevent expanding macro args in comments

Also use a cleaner way, instead of hardcoding to capture

github.com/gbdev/rgbds-deb - f7b7a97407c473c246546905e8ed4123503b579b authored about 4 years ago by ISSOtm <[email protected]>
Fix `INCLUDE` ignoring `-MG`

github.com/gbdev/rgbds-deb - e33c2ad6a2b5b04903c1ebbce5bed8f547898451 authored about 4 years ago by ISSOtm <[email protected]>
Handle comments in line continuations

github.com/gbdev/rgbds-deb - 9e3d7a50e6a93152f60872dd03080c2c1942a97e authored about 4 years ago by ISSOtm <[email protected]>
Fix `readFractionalPart` never shifting characters

github.com/gbdev/rgbds-deb - 615f1072d95d5d382012b2f0b2b55bc5ec61c436 authored about 4 years ago by ISSOtm <[email protected]>
Implement `opt b` and `opt g`

github.com/gbdev/rgbds-deb - ece6853e0f5d206d5b2159aa300ce2a81030d130 authored about 4 years ago by ISSOtm <[email protected]>
Fix `readFractionalPart` never shifting characters

github.com/gbdev/rgbds - 615f1072d95d5d382012b2f0b2b55bc5ec61c436 authored about 4 years ago by ISSOtm <[email protected]>
Implement `opt b` and `opt g`

github.com/gbdev/rgbds - ece6853e0f5d206d5b2159aa300ce2a81030d130 authored about 4 years ago by ISSOtm <[email protected]>
Prevent expanding macro args in comments

Also use a cleaner way, instead of hardcoding to capture

github.com/gbdev/rgbds - f7b7a97407c473c246546905e8ed4123503b579b authored about 4 years ago by ISSOtm <[email protected]>
Handle comments in line continuations

github.com/gbdev/rgbds - 9e3d7a50e6a93152f60872dd03080c2c1942a97e authored about 4 years ago by ISSOtm <[email protected]>
Fix `INCLUDE` ignoring `-MG`

github.com/gbdev/rgbds - e33c2ad6a2b5b04903c1ebbce5bed8f547898451 authored about 4 years ago by ISSOtm <[email protected]>
Support missing register tokens

Made possible by #491

github.com/gbdev/rgbds - 8d18b39eeed5188216483e21675911c046586b72 authored about 4 years ago by ISSOtm <[email protected]>
Fix incorrect error reporting of `INCLUDE`d files

github.com/gbdev/rgbds - 4d1333e124369a63f69ee9ef4bc94bd6073f9b41 authored about 4 years ago by ISSOtm <[email protected]>
Fix files being unmapped when still referenced by macros

github.com/gbdev/rgbds - 35396e6410e471626db52c917f405fcf65034373 authored about 4 years ago by ISSOtm <[email protected]>
Fix macro args not being restored when exiting macros

github.com/gbdev/rgbds - d641972cded4339c8763d55115760c58c9b78c18 authored about 4 years ago by ISSOtm <[email protected]>
Fix else working incorrectly from macros

Since the "skip ELSE blocks" variable is global, it used to get carried
over from the macro's `i...

github.com/gbdev/rgbds - f9b48c0cad60a45625180e71ced52179b07c3d94 authored about 4 years ago by ISSOtm <[email protected]>
Fix file name reporting

As noted in the function's code, this is very error-prone, but
will do the job; this needs rewri...

github.com/gbdev/rgbds - ae77893021c9c728d1ded0eda78aa13ab419dd1f authored about 4 years ago by ISSOtm <[email protected]>
Fix "REPT 0" not being a no-op

github.com/gbdev/rgbds - b7b03ee4510f1dd3f8b7dfdbe4a21d5c0d9bfeb2 authored about 4 years ago by ISSOtm <[email protected]>
Fix _NARG crashing outside of macros

And add a test for it

github.com/gbdev/rgbds - b83b9825f81e99414df95b000df0fd47d55004aa authored about 4 years ago by ISSOtm <[email protected]>
Add line+col trace info to lexer

github.com/gbdev/rgbds - aa76603da9a1c04835f4a431251f77d481c26bdb authored about 4 years ago by ISSOtm <[email protected]>
Fix file name reporting

As noted in the function's code, this is very error-prone, but
will do the job; this needs rewri...

github.com/gbdev/rgbds-deb - ae77893021c9c728d1ded0eda78aa13ab419dd1f authored about 4 years ago by ISSOtm <[email protected]>
Support missing register tokens

Made possible by #491

github.com/gbdev/rgbds-deb - 8d18b39eeed5188216483e21675911c046586b72 authored about 4 years ago by ISSOtm <[email protected]>
Fix files being unmapped when still referenced by macros

github.com/gbdev/rgbds-deb - 35396e6410e471626db52c917f405fcf65034373 authored about 4 years ago by ISSOtm <[email protected]>
Fix incorrect error reporting of `INCLUDE`d files

github.com/gbdev/rgbds-deb - 4d1333e124369a63f69ee9ef4bc94bd6073f9b41 authored about 4 years ago by ISSOtm <[email protected]>
Fix macro args not being restored when exiting macros

github.com/gbdev/rgbds-deb - d641972cded4339c8763d55115760c58c9b78c18 authored about 4 years ago by ISSOtm <[email protected]>
Fix _NARG crashing outside of macros

And add a test for it

github.com/gbdev/rgbds-deb - b83b9825f81e99414df95b000df0fd47d55004aa authored about 4 years ago by ISSOtm <[email protected]>
Add line+col trace info to lexer

github.com/gbdev/rgbds-deb - aa76603da9a1c04835f4a431251f77d481c26bdb authored about 4 years ago by ISSOtm <[email protected]>
Fix else working incorrectly from macros

Since the "skip ELSE blocks" variable is global, it used to get carried
over from the macro's `i...

github.com/gbdev/rgbds-deb - f9b48c0cad60a45625180e71ced52179b07c3d94 authored about 4 years ago by ISSOtm <[email protected]>
Fix "REPT 0" not being a no-op

github.com/gbdev/rgbds-deb - b7b03ee4510f1dd3f8b7dfdbe4a21d5c0d9bfeb2 authored about 4 years ago by ISSOtm <[email protected]>
Fix line-continuation-macro test

github.com/gbdev/rgbds-deb - 62ecdce0b0db976894f88336f1fa7f257a77e950 authored about 4 years ago by ISSOtm <[email protected]>
Fix numeric constant overflow checks

github.com/gbdev/rgbds-deb - 3f5f9bcaf01c0f6b3382f6fb85daa3ac7857ebee authored about 4 years ago by ISSOtm <[email protected]>
Support line continuations in main scope

github.com/gbdev/rgbds-deb - e4f2fad215650efd9155adc5312bb76c6c0c3747 authored about 4 years ago by ISSOtm <[email protected]>
Apply error reporting changes to tests

github.com/gbdev/rgbds-deb - baeb180acdfa7d4f49d7afd53035e8f707fe6551 authored about 4 years ago by ISSOtm <[email protected]>
Implement __FILE__ symbol

Also clean up built-in symbol creation
This is not great, but currently okay.
Should be fixed la...

github.com/gbdev/rgbds-deb - fd02ffb7bd6e41d310dd1c6f0652fcee82152437 authored about 4 years ago by ISSOtm <[email protected]>
Fix numeric constant overflow checks

github.com/gbdev/rgbds - 3f5f9bcaf01c0f6b3382f6fb85daa3ac7857ebee authored about 4 years ago by ISSOtm <[email protected]>
Apply error reporting changes to tests

github.com/gbdev/rgbds - baeb180acdfa7d4f49d7afd53035e8f707fe6551 authored about 4 years ago by ISSOtm <[email protected]>
Support line continuations in main scope

github.com/gbdev/rgbds - e4f2fad215650efd9155adc5312bb76c6c0c3747 authored about 4 years ago by ISSOtm <[email protected]>
Implement __FILE__ symbol

Also clean up built-in symbol creation
This is not great, but currently okay.
Should be fixed la...

github.com/gbdev/rgbds - fd02ffb7bd6e41d310dd1c6f0652fcee82152437 authored about 4 years ago by ISSOtm <[email protected]>
Fix line-continuation-macro test

github.com/gbdev/rgbds - 62ecdce0b0db976894f88336f1fa7f257a77e950 authored about 4 years ago by ISSOtm <[email protected]>
Enable catching invalid macro arg 0

github.com/gbdev/rgbds - 08867b3cec6fbc8bc215a1049055e3c65281751c authored about 4 years ago by ISSOtm <[email protected]>
Enable catching invalid macro arg 0

github.com/gbdev/rgbds-deb - 08867b3cec6fbc8bc215a1049055e3c65281751c authored about 4 years ago by ISSOtm <[email protected]>
Reinstate macro arg scan distance

Used to be broken, so it was removed, but doing so prevents escaping them.
So it was instead put...

github.com/gbdev/rgbds-deb - 9081feab51c8727b81f938d4eeb0c324c18b7a0f authored about 4 years ago by ISSOtm <[email protected]>
Fix lexer capture sometimes not being reset

github.com/gbdev/rgbds-deb - cf992164f79a0e5c0fd49b445d698be2361a9b67 authored about 4 years ago by ISSOtm <[email protected]>
Reinstate macro arg scan distance

Used to be broken, so it was removed, but doing so prevents escaping them.
So it was instead put...

github.com/gbdev/rgbds - 9081feab51c8727b81f938d4eeb0c324c18b7a0f authored about 4 years ago by ISSOtm <[email protected]>
Fix lexer capture sometimes not being reset

github.com/gbdev/rgbds - cf992164f79a0e5c0fd49b445d698be2361a9b67 authored about 4 years ago by ISSOtm <[email protected]>
Add debug tracing code to lexer

Hidden behind a #define, like YYDEBUG

github.com/gbdev/rgbds - d9ecaabac1f49ebf074d1170777135bd6359b3a7 authored about 4 years ago by ISSOtm <[email protected]>
Fix RAW lexer length underflow

Also added an assertion to check against more such overflows

github.com/gbdev/rgbds - b27b821e7f7bf1c3e0ce8c07cb047cca6cf09434 authored about 4 years ago by ISSOtm <[email protected]>
Add debug tracing code to lexer

Hidden behind a #define, like YYDEBUG

github.com/gbdev/rgbds-deb - d9ecaabac1f49ebf074d1170777135bd6359b3a7 authored about 4 years ago by ISSOtm <[email protected]>
Fix RAW lexer length underflow

Also added an assertion to check against more such overflows

github.com/gbdev/rgbds-deb - b27b821e7f7bf1c3e0ce8c07cb047cca6cf09434 authored about 4 years ago by ISSOtm <[email protected]>
Fix many lexer bugs

More to come...

github.com/gbdev/rgbds-deb - cd747d81750f6a04867782e3581a19b66272380b authored about 4 years ago by ISSOtm <[email protected]>
Fix many lexer bugs

More to come...

github.com/gbdev/rgbds - cd747d81750f6a04867782e3581a19b66272380b authored about 4 years ago by ISSOtm <[email protected]>
Implement macro args

This finally allows running 90% of the test suite, debugging time!

github.com/gbdev/rgbds - 6e805cd3182390d756dc973dd61f2d31a476cdb1 authored about 4 years ago by ISSOtm <[email protected]>
Re-implement block copy to avoid expanding macro args

They were expanded during the capture, and there was no easy way to
avoid expanding them (believ...

github.com/gbdev/rgbds - 81a77a9b884eb3208ff6c9a38062e184301ae1f6 authored about 4 years ago by ISSOtm <[email protected]>
Fix crash when no macro args are being used

github.com/gbdev/rgbds - adcaf4cd46615d424ea328431fbd4feb60d84cf0 authored about 4 years ago by ISSOtm <[email protected]>
Fix expansion reporting being incorrect

github.com/gbdev/rgbds - df75fd2ec2d959e8c69e54b491eb6c1de4157cd3 authored about 4 years ago by ISSOtm <[email protected]>
Fix diagnostic formatting

Missing colon and space after the file stack

github.com/gbdev/rgbds - 7c895f8a1b02e433f9790d43f1376ae163b3dbe8 authored about 4 years ago by ISSOtm <[email protected]>
Add test for built-in file symbol

It's currently defined in fstack.c, making it more prone to accidental
dropping. Let's not repea...

github.com/gbdev/rgbds - e11f25024e619c9c1fdd6d3a2cf577f937fa13f9 authored about 4 years ago by ISSOtm <[email protected]>
Fix crash when no macro args are being used

github.com/gbdev/rgbds-deb - adcaf4cd46615d424ea328431fbd4feb60d84cf0 authored about 4 years ago by ISSOtm <[email protected]>
Fix expansion reporting being incorrect

github.com/gbdev/rgbds-deb - df75fd2ec2d959e8c69e54b491eb6c1de4157cd3 authored about 4 years ago by ISSOtm <[email protected]>
Re-implement block copy to avoid expanding macro args

They were expanded during the capture, and there was no easy way to
avoid expanding them (believ...

github.com/gbdev/rgbds-deb - 81a77a9b884eb3208ff6c9a38062e184301ae1f6 authored about 4 years ago by ISSOtm <[email protected]>
Implement macro args

This finally allows running 90% of the test suite, debugging time!

github.com/gbdev/rgbds-deb - 6e805cd3182390d756dc973dd61f2d31a476cdb1 authored about 4 years ago by ISSOtm <[email protected]>
Add test for built-in file symbol

It's currently defined in fstack.c, making it more prone to accidental
dropping. Let's not repea...

github.com/gbdev/rgbds-deb - e11f25024e619c9c1fdd6d3a2cf577f937fa13f9 authored about 4 years ago by ISSOtm <[email protected]>
Fix diagnostic formatting

Missing colon and space after the file stack

github.com/gbdev/rgbds-deb - 7c895f8a1b02e433f9790d43f1376ae163b3dbe8 authored about 4 years ago by ISSOtm <[email protected]>
Fix incorrect freeing of expansions

Freeing an expansion should free its children, not its siblings...
Fixes a use-after-free report...

github.com/gbdev/rgbds-deb - 149db9a0228a08760fb0b8d080b359e1c36fed67 authored about 4 years ago by ISSOtm <[email protected]>