1
0
mirror of https://github.com/openbsd/src.git synced 2026-04-29 08:36:22 +00:00

Use %left to prevent S/R conflicts, arithmetic precedence is still broken.

This commit is contained in:
mpi
2020-01-28 16:02:28 +00:00
parent a298a0f067
commit 91575186c1

View File

@@ -1,4 +1,4 @@
/* $OpenBSD: bt_parse.y,v 1.6 2020/01/28 16:00:12 mpi Exp $ */
/* $OpenBSD: bt_parse.y,v 1.7 2020/01/28 16:02:28 mpi Exp $ */
/*
* Copyright (c) 2019 - 2020 Martin Pieuchot <mpi@openbsd.org>
@@ -113,6 +113,8 @@ static int yylex(void);
%type <v.arg> arg arglist map marg term
%type <v.rtype> beginend
%left '+' '-'
%left '/' '*'
%%
grammar : /* empty */