Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

jocamlyacc(1) [debian man page]

JOCAMLYACC(1)						      General Commands Manual						     JOCAMLYACC(1)

NAME
jocamlyacc - The JoCaml parser generator SYNOPSIS
jocamlyacc [ -v ] [ -bprefix ] filename.mly DESCRIPTION
The jocamlyacc(1) command produces a parser from a LALR(1) context-free grammar specification with attached semantic actions, in the style of yacc(1). Assuming the input file is grammar.mly, running jocamlyacc produces Caml code for a parser in the file grammar.ml, and its interface in file grammar.mli. The generated module defines one parsing function per entry point in the grammar. These functions have the same names as the entry points. Parsing functions take as arguments a lexical analyzer (a function from lexer buffers to tokens) and a lexer buffer, and return the seman- tic attribute of the corresponding entry point. Lexical analyzer functions are usually generated from a lexer specification by the jocam- llex(1) program. Lexer buffers are an abstract data type implemented in the standard library module Lexing. Tokens are values from the con- crete type token, defined in the interface file grammar.mli produced by jocamlyacc(1). OPTIONS
The jocamlyacc(1) command recognizes the following options: -v Generate a description of the parsing tables and a report on conflicts resulting from ambiguities in the grammar. The description is put in file grammar.output. -bprefix Name the output files prefix.ml, prefix.mli, prefix.output, instead of the default naming convention. SEE ALSO
jocamllex(1). The Objective Caml user's manual, chapter "Lexer and parser generators". JOCAMLYACC(1)

Check Out this Related Man Page

YAPPS(1)						      General Commands Manual							  YAPPS(1)

NAME
yapps - create a Python module from a grammar file SYNOPSIS
yapps [ --dump ] [ --use-devel-grammar ] [ -fcontext-insensitive-scanner ] [ -p pid ] [ -f ] input.g [ output.py ] name DESCRIPTION
--dump Dump out grammar information --use-devel-grammar Use the devel grammar parser from yapps_grammar.py instead of the stable grammar from grammar.py -fcontext-insensitive-scanner Scan all tokens (see docs) yapps generates a Python program which will parse a given grammar. OPTIONS
--dump Dump the grammar information to stdout. --use-devel-grammar Use the grammar file in ./yapps_grammar.py instead of yapps/grammar.py. This option is useful for testing new grammar parsers. (Yes, yapps' parser is itself written with yapps...) -fcontext-insensitive-scanner Set the option to use the non-context-sensitive scanner. CAVEATS
yapps implements a recursive-descent scanner. HISTORY
Written by Amit J. Patel <amitp@cs.stanford.edu>. This version was enhanced by Matthias Urlichs <smurf@debian.org>. It is not downwards-compatible with the original yapps2 (yet) and uses a different runtime library. See the change log for details. YAPPS(1)
Man Page

We Also Found This Discussion For You

1. UNIX for Dummies Questions & Answers

I dont really think that the math header has syntax errors

Hi, Mini:Evaluator develop$ make bison -d grammar.y grammar.y: conflicts: 24 shift/reduce flex rules.l cc -0 -o Evaluator grammar.tab.c lex.yy.c -ly -ll -lm In file included from grammar.y:3: /usr/include/architecture/i386/math.h:310: error: syntax error before numeric constant... (1 Reply)
Discussion started by: tcerka
1 Replies