LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


Old

A Simple Flex/Bison Project Template

Posted 08-19-2017 at 03:18 AM by astrogeek
Updated 08-19-2017 at 03:46 AM by astrogeek (typos)

For most of the past year I have encouraged others to make use of their LQ blog space as a place to post and manage code for their personal projects and interests which they wish to share with others.

Posting to our LQ blog space allows us to share our code and ideas without the posting constraints that apply within the question oriented fora, and also allows us to update, alter and extend that information over time without corrupting the logical development, or train of thought so...
Moderator
Views 1203 Comments 0 astrogeek is offline
Old

Flex / Bison Project Template README

Posted 08-19-2017 at 03:17 AM by astrogeek

Flex / Bison Project Template README file.

This file provides a description of the source files and of the major features and purpose of the template project.

Code:
Flex/Bison project skeleton template

This set of files consists of:

README - This file

Makefile        Simple makefile for building project files
                Defines multiple targets, see file for details

fbproject.l     Flex scanner
...
Moderator
Views 935 Comments 0 astrogeek is offline
Old

Parser: Simple Bison Template

Posted 08-19-2017 at 03:17 AM by astrogeek

Flex / Bison Project Template, Bison parser source.

Save this source to a file named fbproject.y in the same directory with other project files.

This file defines a Bison parser which along with the Flex lexer source and Makefile will allow you to quickly build a working project template with the essential features required by many projects, as described in the project README file.

Code:
%code top {
/* Flex/Bison Tutorial Skeleton Parser
   Robert
...
Moderator
Views 920 Comments 0 astrogeek is offline
Old

The C/C++ Parser Generator (v. 2.x)-- Intro & Example 1 (ToCamelCase)

Posted 04-20-2015 at 06:42 PM by rainbowsally
Updated 05-04-2015 at 12:27 PM by rainbowsally (not enough sleep that day)

The C/C++ Parser Generator (v. 2.x)-- Intro & Example 1 (ToCamelCase)

Based loosely on the long defunct but exceedingly wonderful non-gnu BNF project at Savanah...

Today's Amazing Features
  • Character-wise parser with basic string (abbrev 'str') functions built-in.
  • Uses normal intuitive C/C++ boolean grammar, if(), while(), &&, ||, etc.
  • Powerful string translation and inline EXTERN( ... ) capability.
  • Funcs:
  • is_*()
  • not_*()
...
Member
Posted in Uncategorized
Views 1233 Comments 0 rainbowsally is offline
Old

The C/C++ Parser Generator (v. 2.x) -- The Brains

Posted 04-20-2015 at 06:15 PM by rainbowsally
Updated 05-08-2015 at 04:17 AM by rainbowsally (bug fix, typo correction, misc tweeks)

The C/C++ Parser Generator (v. 2.x) -- The Brains

Features:
  • How many times do I have to tell you, Igor?

See the version notes at the top of the source extractor below. Latest: May 8, 2015.

The code for this is just over the size limit here at linuxquestions last time I ran into it, so we have packed this stuff up.

Run this file as 'sh parser-files.base64'. You probably have the base64 app if you're running linux.

It creates:...
Member
Posted in Uncategorized
Views 1173 Comments 0 rainbowsally is offline

  



All times are GMT -5. The time now is 10:35 PM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration