Giter Site home page Giter Site logo

akispapapanagiotou / flex-and-bison-parser Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 73 KB

A complete implementation of a lexer and parser using Flex and Bison for a subset of the XML notation used in Android application development.

C 91.59% Lex 2.94% Yacc 5.47%
android application-development bison flex lexer parser subset syntactic-analysis user-interface xml

flex-and-bison-parser's Introduction

๐Ÿ”Ž Flex and Bison Parser for Android XML Subset

This repository contains a complete implementation of a lexer and parser using Flex and Bison tools for a subset of the XML notation used in Android application development, specifically focusing on elements related to the User Interface (UI). The lexer and parser analyze input files which are written in this subset of XML and determine if the program is syntactically correct.

๐Ÿ“ธ Screenshots:

Success: Program Executed Successfully

success

Failure: Program Execution Error

failure

Failure: Duplicate ID Error

failure - duplicate ID

โ–ถ๏ธ How to run:

Clone the repository:

git clone https://github.com/akispapapanagiotou/flex-and-bison-parser.git

Compile the source code using the following commands:

flex lexer.l
bison -d syntax.y
gcc -o myParser lex.yy.c syntax.tab.c -lfl

Execute the program by running the following command but first replace file_name with the name of the input file written in the XML subset:

./myParser file_name

๐Ÿ› ๏ธ Built with:

  • Flex: A fast lexical analyzer generator.
  • Bison: A general-purpose parser generator.
  • C programming language: Used for implementing the main program logic.

flex-and-bison-parser's People

Contributors

akispapapanagiotou avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.