langcc icon indicating copy to clipboard operation
langcc copied to clipboard

Is this project still alive ?

Open mingodad opened this issue 2 weeks ago • 0 comments

Hello ! When I build this project that takes a while because of everything inline and the use of sha256 it generates huge binaries and when I try to test how it responds to some typical grammar errors it just crash with a back trace but no message about the offending error like:

tokens {
    id <- `a`..`z` (`a`..`z` | `0`..`9`)*;
    id <- `-`;  //duplicated entry
    ws <= ` `;
    top <= id;
}

lexer {
    main { body }

    mode body {
        top => { emit; }
        ws => { pass; }
        eof => { pop; }
    }
}

parser {
    main { S }

    S <- id _ id;
    K <- id; //not used
}

Output:

../../build/langcc -i ../../src basic.lang gen
[000:00:00.000996] -- Performing initial validation and tabulation
[000:00:00.001816] -- Compiling lexer
[000:00:00.012393] -- Compiling parser: tabulating symbols
[000:00:00.012451] -- Compiling parser: inferring attributes

Stack trace:
  #1: /lib/x86_64-linux-gnu/libc.so.6 [0x0000006b21484370]
  #2: /lib/x86_64-linux-gnu/libc.so.6 [0x000000000003ef10]
  #3: ../../build/langcc [0x000000000000a889]
Makefile:16: recipe for target 'gen/basic__gen.cpp' failed
make: *** [gen/basic__gen.cpp] Aborted (core dumped)

Is this project still alive or been used by someone ?

Cheers !

mingodad avatar Dec 09 '25 14:12 mingodad