1 /* The grammar of ISO-Pascal as given by the specification, BS6192: 1982. */
22 %start LLparse, Program;
24 /* ISO section 6.10, p. 137 */
35 C_ms_stb_cst(df->df_idf->id_text, N_MAIN, 0, (arith) 0);
36 stb_string(df, D_END);
41 df->df_idf = str2idf(FileName, 1);
42 df->df_kind = D_MODULE;
44 GlobalScope = CurrentScope;
45 df->prc_vis = CurrVis;
51 ProgramHeading(register struct def **df;):
53 { program = *df = new_def();
54 (*df)->df_idf = dot.TOK_IDF;
55 (*df)->df_kind = D_PROGRAM;
57 GlobalScope = CurrentScope;
58 (*df)->prc_vis = CurrVis;
60 if (options['g']) stb_string(*df, D_MODULE);
73 struct node *Proglist;
75 IdentifierList(&Proglist)
76 { EnterProgList(Proglist); }