head 1.1; access; symbols pkgsrc-2026Q1:1.1.0.50 pkgsrc-2026Q1-base:1.1 pkgsrc-2025Q4:1.1.0.48 pkgsrc-2025Q4-base:1.1 pkgsrc-2025Q3:1.1.0.46 pkgsrc-2025Q3-base:1.1 pkgsrc-2025Q2:1.1.0.44 pkgsrc-2025Q2-base:1.1 pkgsrc-2025Q1:1.1.0.42 pkgsrc-2025Q1-base:1.1 pkgsrc-2024Q4:1.1.0.40 pkgsrc-2024Q4-base:1.1 pkgsrc-2024Q3:1.1.0.38 pkgsrc-2024Q3-base:1.1 pkgsrc-2024Q2:1.1.0.36 pkgsrc-2024Q2-base:1.1 pkgsrc-2024Q1:1.1.0.34 pkgsrc-2024Q1-base:1.1 pkgsrc-2023Q4:1.1.0.32 pkgsrc-2023Q4-base:1.1 pkgsrc-2023Q3:1.1.0.30 pkgsrc-2023Q3-base:1.1 pkgsrc-2023Q2:1.1.0.28 pkgsrc-2023Q2-base:1.1 pkgsrc-2023Q1:1.1.0.26 pkgsrc-2023Q1-base:1.1 pkgsrc-2022Q4:1.1.0.24 pkgsrc-2022Q4-base:1.1 pkgsrc-2022Q3:1.1.0.22 pkgsrc-2022Q3-base:1.1 pkgsrc-2022Q2:1.1.0.20 pkgsrc-2022Q2-base:1.1 pkgsrc-2022Q1:1.1.0.18 pkgsrc-2022Q1-base:1.1 pkgsrc-2021Q4:1.1.0.16 pkgsrc-2021Q4-base:1.1 pkgsrc-2021Q3:1.1.0.14 pkgsrc-2021Q3-base:1.1 pkgsrc-2021Q2:1.1.0.12 pkgsrc-2021Q2-base:1.1 pkgsrc-2021Q1:1.1.0.10 pkgsrc-2021Q1-base:1.1 pkgsrc-2020Q4:1.1.0.8 pkgsrc-2020Q4-base:1.1 pkgsrc-2020Q3:1.1.0.6 pkgsrc-2020Q3-base:1.1 pkgsrc-2020Q2:1.1.0.4 pkgsrc-2020Q2-base:1.1 pkgsrc-2020Q1:1.1.0.2 pkgsrc-2020Q1-base:1.1; locks; strict; comment @# @; 1.1 date 2019.12.31.19.46.12; author markd; state Exp; branches; next ; commitid NX4FLcla0EcwATQB; desc @@ 1.1 log @bibtex2html: build with current ocaml @ text @$NetBSD$ fixed compilation with recent versions of OCaml git commit 8f25afb95a839c9f9522a34013d5c905af14378b --- condition_parser.mly.orig 2014-07-04 07:51:21.000000000 +0000 +++ condition_parser.mly @@@@ -17,15 +17,15 @@@@ /* * bibtex2html - A BibTeX to HTML translator * Copyright (C) 1997 Jean-Christophe FILLIATRE - * + * * This software is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public * License version 2, as published by the Free Software Foundation. - * + * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * + * * See the GNU General Public License version 2 for more details * (enclosed in the file GPL). */ @@@@ -39,7 +39,7 @@@@ %} %token IDENT STRING COMP -%token INT +%token INT %token COLON AND OR NOT LPAR RPAR DOLLAR_KEY DOLLAR_TYPE EXISTS EOF %start condition_start @@@@ -64,19 +64,17 @@@@ condition: ; atom: -| cte COLON STRING +| cte COLON STRING { let s = Latex_accents.normalize true $3 in (*i Printf.printf "regexp = %s\n" s; i*) Match($1, Str.regexp_case_fold s) } -| cte COMP cte +| cte COMP cte { Comp($1,$2,$3) } -| EXISTS IDENT - { Exists(String.lowercase $2) } +| EXISTS IDENT + { Exists(String.lowercase_ascii $2) } ; -cte: IDENT { Field(String.lowercase $1) } | INT { Cte($1) } | STRING { +cte: IDENT { Field(String.lowercase_ascii $1) } | INT { Cte($1) } | STRING { Cte($1) } | DOLLAR_KEY { Key } | DOLLAR_TYPE { Entrytype } ; - - @