source: Deliverables/D2.2/8051/src/utilities/syntacticAnalysis.ml @ 486

Last change on this file since 486 was 486, checked in by ayache, 8 years ago

Deliverable D2.2

File size: 401 bytes
Line 
1exception ParsingError
2
3type 'token with_pos = 'token * Lexing.position * Lexing.position
4
5let parsing_step = "during parsing"
6
7let process ~lexer_init ~lexer_fun ~parser_fun ~input =
8  parser_fun lexer_fun (lexer_init input)
9
10let process ~lexer_init ~lexer_fun ~parser_fun ~input  = try
11  process ~lexer_init ~lexer_fun ~parser_fun ~input
12with Sys_error msg ->
13  Error.global_error parsing_step msg
14
Note: See TracBrowser for help on using the repository browser.