Sponsored Content
Full Discussion: Context Free Grammar
Top Forums Programming Context Free Grammar Post 25997 by Nisha on Friday 9th of August 2002 02:40:02 AM
Old 08-09-2002
MySQL Context Free Grammar

Hi Folks,

I am trying to write a small compiler for syntax checking in C programs. I would like to attach a Context Free Grammar(CFC) to it.

Does any one know as to how I should associate or map the Grammar with the C program????

A quick help would help me a lot......

Thanks,
Nisha
 

3 More Discussions You Might Find Interesting

1. Homework & Coursework Questions

My Context Free Grammar (CFG)

I don't know how to delete this thread. Admin/Mod, Please delete this thread. Thanks. (0 Replies)
Discussion started by: Cyansnow
0 Replies

2. Shell Programming and Scripting

Shell grammar question: logical OR in test

Hi, I am trying to check if two input files exist before the rest of the scripts is run. Following is the code that I have but it gives me syntax error. if then echo "File not found" else echo "File found" fi (3 Replies)
Discussion started by: nua7
3 Replies

3. Shell Programming and Scripting

Questions related to if in awk context and if without awk context

I wrote this code, questions follow #! /bin/bash -f # Purpose - to show how if syntax is used within an awk clear; ls -l; echo "This will print out the first two columns of the inputted file in this directory"; echo "Enter filename found in this directory"; read input; ... (11 Replies)
Discussion started by: Seth
11 Replies
RDF::Trine::Parser::OwlFn::Grammar(3pm) 		User Contributed Perl Documentation		   RDF::Trine::Parser::OwlFn::Grammar(3pm)

NAME
RDF::Trine::Parser::OwlFn::Grammar - provides a Parse::RecDescent grammar for OWL 2.0 Functional Syntax DESCRIPTION
This package provides two methods: o "grammar" Returns the grammar as a string. o "new" Returns a Parse::RecDescent parser object using the grammar Additionally, if you run this "Grammar.pm" module directly at the command line: perl -w Grammar.pm It will generate a file called "Compiled.pm" containing a pre-compiled Parse::RecDescent parser. CONFORMANCE
This grammar deviates from the official one in a few places: o QName (a.k.a. CURIE) syntax is slightly broken - in most cases you won't notice it. o CSS-style comments (/* ... */) are allowed. o Unquoted xsd:nonNegativeInteger tokens can be used as literals. o The unquoted tokens 'true' and 'false' can be used as literals. o Multiple "Ontology(...)" instances are allowed in a single file. SEE ALSO
http://www.w3.org/TR/2009/REC-owl2-syntax-20091027/#Appendix:_Complete_Grammar_.28Normative.29 <http://www.w3.org/TR/2009/REC- owl2-syntax-20091027/#Appendix:_Complete_Grammar_.28Normative.29>, http://www.w3.org/TR/2009/REC-owl2-mapping-to-rdf-20091027/#Mapping_from_the_Structural_Specification_to_RDF_Graphs <http://www.w3.org/TR/2009/REC-owl2-mapping-to-rdf-20091027/#Mapping_from_the_Structural_Specification_to_RDF_Graphs>. RDF::Trine::Parser::OwlFn. <http://www.perlrdf.org/>. AUTHOR
Toby Inkster <tobyink@cpan.org>. COPYRIGHT
Copyright 2011-2012 Toby Inkster This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. DISCLAIMER OF WARRANTIES
THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. perl v5.14.2 2012-06-28 RDF::Trine::Parser::OwlFn::Grammar(3pm)
All times are GMT -4. The time now is 05:12 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy