LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


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 931 Comments 0 astrogeek is offline
Old

Lexer: Simple Flex Template

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

Flex / Bison Project Template, Flex lexer source file.

Save this source to a file named fbproject.l in the same directory as other project template files.

This file defines a Flex based lexer which along with the Bison parser 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:
%{
/* Flex/Bison tutorial skeleton lexer definitions
...
Moderator
Views 1066 Comments 0 astrogeek is offline
Old

Makefile: For building Flex/Bison template

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

Flex / Bison Project Template, project Makefile.

Save this make source to a file named Makefile in the same directory with lexer and parser source files. The build targets are described in the template project README file.

To build a working parser simply run make in the project directory.

To generate a graph of the parser and display it in an X11 window, run make dotx11.

Code:
#A simple makefile for building Flex / Bison template
...
Moderator
Views 3067 Comments 0 astrogeek is offline
Old
Rating: 4 votes, 5.00 average.

Down The Rabbit Hole... Chapter 1

Posted 02-05-2016 at 02:05 AM by astrogeek
Updated 08-19-2017 at 03:42 AM by astrogeek (Changed category)

Down The Rabbit Hole...

During an ordinary, cordial gathering of Slackware users over tea, as they happily shared their common visions (not to say hallucinations), the conversation inevitably took a turn down the rabbit hole.

Other enthusiastic Slackers, linguists, scholars and minstrels happily followed this new direction. Some provided historical and literary knowledge while musical accompaniment from another time played in the heads of all the wisened participants....
Attached Images
File Type: jpg spine.jpg (29.6 KB, 140 views)
File Type: jpg flat.jpg (56.2 KB, 119 views)
File Type: jpg wonderland.jpg (70.5 KB, 108 views)
File Type: jpg looking_glass.jpg (56.1 KB, 95 views)
File Type: jpg rabbit_hole.jpg (59.5 KB, 100 views)
Moderator
Posted in White Rabbits
Views 1503 Comments 8 astrogeek is offline

  



All times are GMT -5. The time now is 05:46 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