tyfkda / xcc

Standalone C compiler/assembler/linker/libc for x86-64/aarch64/riscv64/wasm
https://tyfkda.github.io/xcc/
MIT License
254 stars 17 forks source link

Parse according to BNF #69

Closed tyfkda closed 5 months ago

tyfkda commented 4 years ago

.

mingodad commented 1 year ago

Just in case it can help I'm trying to create an online grammar editor/tester/explorer here https://mingodad.github.io/parsertl-playground/playground/ (repository here https://github.com/mingodad/parsertl-playground ) and I already have several grammars there to play with including several C grammars.

For example the last one I've added is the Frama-C v27 Cobalt grammar , select C parser frama-c (partially working) and then click Parse to see the parser tree.

Any feedback is welcome !

tyfkda commented 1 year ago

@mingodad Wow, I'm very impressed the quality and volume!

If I could use compiler-compiler, but I don't have knowledge about how to recover from error.

mingodad commented 8 months ago

Maybe you'll also be interested in https://github.com/thradams/cake and it's playground http://thradams.com/cake/playground.html it has an interesting borrow checker extension.

tyfkda commented 8 months ago

I was surprised that the C language still had so much room for evolution while maintaining its simplicity. I hope ownership is incorporated!

mingodad commented 5 months ago

I just found this http://www.srcml.org/ -> https://github.com/srcML/srcML and it's wasm playground http://www.srcml.org/doc/playground.html and I think that it's of interest to you too.

tyfkda commented 5 months ago

I'm afraid but maybe these are off topic.