File: badgram

package info (click to toggle)
lola 1.8-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 464 kB
  • sloc: python: 1,355; ansic: 1,169; fortran: 373; makefile: 40; yacc: 7
file content (14 lines) | stat: -rw-r--r-- 202 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
;
; this grammar is left recursive through the null production
; in bar -- it should elicit the error
;
; lola: left-recursive grammar for symbol foo
;

(
 (foo		(bar foo)
 		)
 (bar		(A B)
 		()
		)
)