python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
"obvious" shift/reduce error in 6 tokens or less
I have a grammar, illustrated below, in which statements have an error clause that can include an arbitrary number of statements. The error clause must be terminated by an END (like case/esac in the ...
James K. Lowden
Votes: 0
Answers: 1
Segmentation fault with yacc/bison
I am trying to write a simple HTTP request parser for a school assignment but I have this segmentation fault that I can't get rid of. I think that my production rules are ok. I have executed bison wit...

Zlatan Radovanovic
Votes: 0
Answers: 2
Applying YACC to GCODE (GRBL)
GCode is language used to tell multi-axis (CNC) robots how to move.
It looks like this :
M3 S5000 (Start Spindle Clockwise at 5000 RPM)
G21 (All units in mm)
G00 Z1.000000 (lift Z axis up by 1mm)
G00 ...

Richard
Votes: 0
Answers: 1
Is that possible to implement [stmt]+ in yacc?
I have a homework from school is to make a compiler in yacc
and the question is :
PROGRAM ::= STMT+
STMT ::= EXP | PRINT-STMT
.......
I try to implement STMT+ like this :
Program : STMT_PLUS { prin...
張哲銘
Votes: 0
Answers: 1