(* Author: Basil Fürer *) theory Prec_Surface_Tests imports TIGER_Grammar.LR_Prec_Parse Parser_Check begin section ‹Precedence declarations in ⬚‹grammar›› fun toks :: ‹nat ⇒ 'tok list ⇒ ('tok, unit) token list› where ‹toks i [] = []› | ‹toks i (x # xs) = ⦇tok = x, span = span.make 0 i i 1 []⦈ # toks (Suc (Suc i)) xs›