Ecosyste.ms: OpenCollective

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

github.com/gbdev/rgbds

Rednex Game Boy Development System - An assembly toolchain for the Nintendo Game Boy and Game Boy Color
https://github.com/gbdev/rgbds

Merge pull request #607 from anderoonies/inline-comment-#537

handle inline c-like comments in lexer

7e1d20acdfd03bed76c66e213d2fd93cc703ac87 authored over 4 years ago
documentation for block comments

5230104852a7af729105f2b13f1de78d95c3f9c8 authored over 4 years ago
discard block comments delimited with /* */

55be77be69fb2392404203ab6735e05a9fcea067 authored over 4 years ago
Merge pull request #602 from NieDzejkob/shiftstorm

Report only one error when invalid shift has argument

42b3a173566a70c665066bf9e1f8d2568b9b176c authored over 4 years ago
Improve error message for negative shift arguments

4e1d79081c3aba476daf38ba42180281752a8e3b authored over 4 years ago
Mention setting CMAKE_BUILD_TYPE to Release when using CMake

Not *necessary*, but if you don't know better, you should probably use it.
Fixes rgbds-www#9

4ce4fdec711df0c0f3af7ab955140161165716be authored over 4 years ago
Merge pull request #604 from NieDzejkob/narg-overwrite

Don't overwrite symbol when it's not allowed

05256946ac03124188b0157ebd8f75a26f3b43e6 authored over 4 years ago
Merge pull request #605 from NieDzejkob/invalid-labels

Don't consider difference of invalid labels constant

73396166aaca4542fc1708d6febd0a959e05df88 authored over 4 years ago
Don't consider difference of invalid labels constant

If a label is defined outside of a section, avoid trying to obtain its
value.

4c5d5c708591fa878fcba297172da2d51579f908 authored over 4 years ago
Report only one error when invalid shift has argument

Not to mention that incrementing a variable in a loop is kinda dumb.

045a9e8b93048379b60afc9992d6f245d5129a89 authored over 4 years ago
remove dead function: sym_GetDefinedValue

4419f0d54f32eaf3e34b8b9154b71d832bdb903c authored over 4 years ago
Don't overwrite symbol when it's not allowed

When a user tried to overwrite a builtin symbol, it would change its
type despite the error, mak...

b07aa00d5cfda645978747d25c20643b7cc1ee7e authored over 4 years ago
Merge pull request #603 from NieDzejkob/rpn-realloc

reserveSpace: don't assume one doubling is enough

e4f5df1306c4eb09de57728f9756b951b41565aa authored over 4 years ago
reserveSpace: don't assume one doubling is enough

dc62d60e9b3ff28667e4d6652c7d51491ff8e918 authored over 4 years ago
Add CMake defines to enable tracing lexer and parser

71d8aeb4c276d29764bf0f76879a2b6047c85803 authored over 4 years ago
Merge pull request #601 from NieDzejkob/utf8decoder

utf8decoder: Use byte-sized byte argument

0836f67d429d2f545f43e203023d174ca4442779 authored over 4 years ago
Merge pull request #600 from NieDzejkob/stray-shift

Report error when shifting outside a macro

176a57a1e96c53513b82b093b105bb9b4f92da6c authored over 4 years ago
Merge pull request #599 from NieDzejkob/stray-align

Report error when aligning outside of a section

0d02355dbf9fef92c2cf40be09e304601a931014 authored over 4 years ago
utf8decoder: Use byte-sized byte argument

This prevents passing a negative value out of a signed char by accident.
Also renders some casts...

6767d11c23a15f1085ff203c94a6fa0b60aa4352 authored over 4 years ago
Remove two stale variables from `parser.y`

They were made useless with the lexer rewrite

2dd9015dc60c8e0bf4fffa25039395e14827eb93 authored over 4 years ago
Report error when shifting outside a macro

217c10ddac43fa0b87566bb44bef8236b0eab316 authored over 4 years ago
Report error when aligning outside of a section

822e4e7c44a8b7e1d1d2e2172f34ac57aec6a06e authored over 4 years ago
Indicate cur offset in linkerscript "backwards org" message

0b1d01792d0b370e79fcf6c5fef2bef6161c8097 authored over 4 years ago
Rename `asmy` to more explicit `parser`

This should make the purpose of that file clearer to newcomers

01637768cf19aedf85882b0d9f53284299239037 authored over 4 years ago
Mention that SHIFT updates _NARG

Fixes #598

6a8ae643d5e900b2dbe7d741a1f14df5912cede8 authored over 4 years ago
Enable master docs update workflow always

There seems to be no way to make the check work, and Actions are disabled
in forks by default an...

fd83d46ba0d9847c8095068fc871102e38772f89 authored over 4 years ago
Fix incorrect documentation of accepted sym names

No, they cannot start with a digit!

914856342ce02d23bfa2424eb06da6d644e9e946 authored over 4 years ago
Merge pull request #593 from Rangi42/issue586

Fix #586: Update the `charmaps` hashmap when an existing charmap is resized

91889fc14abbf705271bb484e89e349e08f76477 authored over 4 years ago
Add a test case for charmaps that segfaults prior to this fix

7c8ec5a5edbdae184ce5c0f6bbcde6037340f209 authored over 4 years ago
Fix #586 segfault: Update the `charmaps` hashmap when an existing charmap is resized

effc6788ebe0958f64b3218fbd341b4091ed016b authored over 4 years ago
Merge pull request #585 from ISSOtm/msvc-ci

Add MSVC in CI

f9daf27511bfa49a100fa45648c5098098d696b5 authored over 4 years ago
Avoid using VLA in EQUS dumping

MSVC does not support those...
Also add a `develop` warning about VLAs, to avoid future incidents

06f7387466eb7d9ee3d9963d3a52a8f455bcaaf2 authored over 4 years ago
Have lexer not require <unistd.h> on MSVC

Required for `open`, `close`, `read`, and `STDIN_FILENO`,
which are defined elsewhere on MSVC.

21e50eeff1bac67817406cc9df8e5dce5712eb6e authored over 4 years ago
Compile with MSVC as well in CI

fd4cec93cd5d50bb478655f488a0a8420f96fdd0 authored over 4 years ago
Fix implicit cast between `enum`s

This caused `make develop` to fail

92f2055a6c3328a101e2560d26c75fdc4fe1f8be authored over 4 years ago
Merge pull request #584 from Xeyler/master

Add directory summary to README.rst

be9b1198e940ed36c95778d30099a11cbf803860 authored over 4 years ago
Add directory summary to README.rst

56bea083f966306c49156d38f5c5d15d010994e9 authored over 4 years ago
Merge pull request #583 from JL2210/cmake-build-type

Modularize CMake build configuration

fdfc02ab963ed2ccdcae08cb3ad7231bf9b40bda authored over 4 years ago
Merge pull request #551 from NieDzejkob/errors-after-unknown-symbol

link: Suppress cascading errors.

fc7f042ad6ee4b5af83cf7908e5621a184864ea0 authored over 4 years ago
Modularize CMake build configuration

Build type no longer defaults to Release (!)
have separate options for extra warning flags and s...

761c775043d22718811297147f5bd75c6118d84e authored over 4 years ago
link: Suppress cascading errors.

b421c983d6cd577905b0bafe2c5c200f681552ef authored over 4 years ago
Merge pull request #557 from ISSOtm/new-lexer-electric-boogaloo

New lexer 2 — Electric Boogaloo

3036b5859894be1bc4523d7e309fca5015728679 authored over 4 years ago
Fix critical oversight in lexer buffer refilling

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

2eca43cd2da5a4be21cada359bd5e152f1896453 authored over 4 years ago
Fix possible uninitialized read on Windows

138523570e1b8a6a4e45f5c64a4335807c37c657 authored over 4 years ago
Move some MSVC-specific defines to `platform.h`

8e7afb0ab38aa80464317774a5166e09bd5aa084 authored over 4 years ago
Use common function to discard comments in macro args

ac011fe69f009152eb3bc87707d6140620995547 authored over 4 years ago
Change assertion condition in __FILE__ buf dumping

Removes a false positive from Clang static analysis

ee9e45b3d45f0b6f4342159ec75179df503fdc29 authored over 4 years ago
Add newlines to all test output

MacOS treats them differently, for some reason.

b65ea64a583855ae69b685e3c094d0697d86b2c3 authored over 4 years ago
Mark not unmapping macro-containing files as okay

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

930080f556fc5ac7c41a1e5e05e8ab01e1789142 authored over 4 years ago
Fix range-dependent dead code in recursion depth check

96cb5e10ed87e7f072f9f98440a4139a13ba013d authored over 4 years ago
Implement compact file stacks in object files

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

5a65188ca94f2ebaa6ffabac4e7d04cb166de4d6 authored over 4 years ago
Harmonize printing `distance`

b224cab3e052e79ee8628ed896d4350765e1b75d authored over 4 years ago
Fix incomplete duplication of REPT nodes

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

c24694233f5f1103a33d3476f44cf47099936a84 authored over 4 years ago
Shim around `mmap` on Windows

82469ac0fde1b2e73bfbfc58853a7ecb95e4a794 authored over 4 years ago
Fix C2x use of `static_assert`

71a0a42cfb482929834973fd206f5dcc1bdbdaae authored over 4 years ago
Remove unnecessarily nested symbol data union

7381d7b92fa21cce3c086cb01199036053687078 authored over 4 years ago
Move `isWhitespace` to a place where it makes more sense

dbef51ba052ff9d98fbed87f36b53e5a2d4af074 authored over 4 years ago
Fix fixed-point constants not working correctly

And added a test to check their behavior

c952dd8a6e1837ebfbcb5ade04f7d66cefa38cbd authored over 4 years ago
Handle \\r better

Translate it to \\n regardless of the lexer mode

423a7c48994fc9430960f83955d6697d484e342a authored over 4 years ago
Fix possible capture buffer size overflow

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

542b5d18f1307f23104bdc52fed03ad249895c1c authored over 4 years ago
Prevent expanding macro args in comments

Also use a cleaner way, instead of hardcoding to capture

f7b7a97407c473c246546905e8ed4123503b579b authored over 4 years ago
Implement `opt b` and `opt g`

ece6853e0f5d206d5b2159aa300ce2a81030d130 authored over 4 years ago
Fix `readFractionalPart` never shifting characters

615f1072d95d5d382012b2f0b2b55bc5ec61c436 authored over 4 years ago
Handle comments in line continuations

9e3d7a50e6a93152f60872dd03080c2c1942a97e authored over 4 years ago
Fix `INCLUDE` ignoring `-MG`

e33c2ad6a2b5b04903c1ebbce5bed8f547898451 authored over 4 years ago
Fix _NARG crashing outside of macros

And add a test for it

b83b9825f81e99414df95b000df0fd47d55004aa authored over 4 years ago
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...

f9b48c0cad60a45625180e71ced52179b07c3d94 authored over 4 years ago
Add line+col trace info to lexer

aa76603da9a1c04835f4a431251f77d481c26bdb authored over 4 years ago
Fix files being unmapped when still referenced by macros

35396e6410e471626db52c917f405fcf65034373 authored over 4 years ago
Support missing register tokens

Made possible by #491

8d18b39eeed5188216483e21675911c046586b72 authored over 4 years ago
Fix incorrect error reporting of `INCLUDE`d files

4d1333e124369a63f69ee9ef4bc94bd6073f9b41 authored over 4 years ago
Fix file name reporting

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

ae77893021c9c728d1ded0eda78aa13ab419dd1f authored over 4 years ago
Fix macro args not being restored when exiting macros

d641972cded4339c8763d55115760c58c9b78c18 authored over 4 years ago
Fix "REPT 0" not being a no-op

b7b03ee4510f1dd3f8b7dfdbe4a21d5c0d9bfeb2 authored over 4 years ago
Fix line-continuation-macro test

62ecdce0b0db976894f88336f1fa7f257a77e950 authored over 4 years ago
Apply error reporting changes to tests

baeb180acdfa7d4f49d7afd53035e8f707fe6551 authored over 4 years ago
Support line continuations in main scope

e4f2fad215650efd9155adc5312bb76c6c0c3747 authored over 4 years ago
Implement __FILE__ symbol

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

fd02ffb7bd6e41d310dd1c6f0652fcee82152437 authored over 4 years ago
Fix numeric constant overflow checks

3f5f9bcaf01c0f6b3382f6fb85daa3ac7857ebee authored over 4 years ago
Enable catching invalid macro arg 0

08867b3cec6fbc8bc215a1049055e3c65281751c authored over 4 years ago
Reinstate macro arg scan distance

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

9081feab51c8727b81f938d4eeb0c324c18b7a0f authored over 4 years ago
Fix lexer capture sometimes not being reset

cf992164f79a0e5c0fd49b445d698be2361a9b67 authored over 4 years ago
Add debug tracing code to lexer

Hidden behind a #define, like YYDEBUG

d9ecaabac1f49ebf074d1170777135bd6359b3a7 authored over 4 years ago
Fix RAW lexer length underflow

Also added an assertion to check against more such overflows

b27b821e7f7bf1c3e0ce8c07cb047cca6cf09434 authored over 4 years ago
Fix many lexer bugs

More to come...

cd747d81750f6a04867782e3581a19b66272380b authored over 4 years ago
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...

81a77a9b884eb3208ff6c9a38062e184301ae1f6 authored over 4 years ago
Fix expansion reporting being incorrect

df75fd2ec2d959e8c69e54b491eb6c1de4157cd3 authored over 4 years ago
Implement macro args

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

6e805cd3182390d756dc973dd61f2d31a476cdb1 authored over 4 years ago
Fix crash when no macro args are being used

adcaf4cd46615d424ea328431fbd4feb60d84cf0 authored over 4 years ago
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...

e11f25024e619c9c1fdd6d3a2cf577f937fa13f9 authored over 4 years ago
Fix diagnostic formatting

Missing colon and space after the file stack

7c895f8a1b02e433f9790d43f1376ae163b3dbe8 authored over 4 years ago
Fix mmap read offset not being initialized

2ec10012b6633f5e23012330fd5faddcfea490b8 authored over 4 years ago
Fix PC's name not being passed to parser

e56c6cc2918003f404edfd7c8575c0ab343ba2da authored over 4 years ago
Add string expansion reporting

And fix line counting with expansion-made newlines.
This has the same bug as the old lexer (equs...

61b2fd98160f3aa9f7f66f00273090412623002b authored over 4 years ago
Fix string expansion reporting

More expansions were allowed than the limit specified, and reporting code
did not account for th...

38bda7e1bb91586e20f41cd52254a49b2a549d5e authored over 4 years ago
Fix incorrect freeing of expansions

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

149db9a0228a08760fb0b8d080b359e1c36fed67 authored over 4 years ago
Add EQUS expansion

5ad7a9375076f1d352a9825379e0abee43c2fdfc authored over 4 years ago
Fix nested expansions being incorrectly handled

The biggest problem was simply that the length of children expansions was
not accounted for when...

fed252bc4975f48116e49301a0b21266edcf6c35 authored over 4 years ago
Implement almost all functionality

Add keywords and identifiers
Add comments
Add number literals
Add strings
Add a lot of new token...

4c9a929a14d76609c26c06eeac0371d531f670c8 authored over 4 years ago
Implement infrastructure around new lexer

The lexer itself is very much incomplete, but this is intended to be a
safe point to revert to s...

6dc4ce65999d9f26703c4728ed983fbec90635c1 authored over 4 years ago