No description
Find a file
2025-11-20 14:32:58 +01:00
src simplified config 2025-11-20 14:32:58 +01:00
.gitignore ok 2025-11-20 14:31:10 +01:00
makefile fixed token dump 2025-11-20 13:16:51 +01:00
README.md added config files 2025-11-20 10:30:59 +01:00

Parser

Explanation of options:

// Bison version
%require "3.0.4"

// skeleton program to be used as parser
%skeleton "lalr1.cc" 

// tells bison to generate a header file
%defines 

// where the parser will live (in what namespace)
%define api.prefix {yy} 

// the name of parser class
%define api.parser.class {Parser} 

/* it will generate a location class which can be used in your lexer */
%locations

/* use the constructor for each token, and make_TOKENNAME functions will be generated */
%define api.token.constructor 

/* use the variant type for $1~$n and $$ those variables */
%define api.value.type variant

%define parse.trace
%define parse.error verbose