Coder Social home page Coder Social logo

put-cawllp-ini's Introduction

put-CAwLLP-ini

Repo containing the task for the 2nd project of Computer Architecture with Low-Level Programming - parsing ini files

Requirements & Specs: Main goal - C program to parse INI files using only C standard library

Requirements & Specs:

  • (3.0) accept two command line parameters in format $ ./program PATH-TO-INI-FILE.ini section.key
  • (3.0) print out value under a key in [data] section
  • (3.0) assume limits: no. of sections, len of section name, len of key, len of value < 30 (4.5) these limits are not valid, can be any length (no compile-time limit)
  • (3.5) detect missing section and print out dedicated messagee, e.g. Failed to find section [data]
  • (3.5) detect missing key in a present section, e.g. Failed to find key "key" in section [data]
  • (4.0) parse the data into well defined structures, e.g. struct section { ... };
  • (4.0) detect invalid identifiers in INI file (section name and keys), i.e. those that contain char other than letters and digits
  • (5.0) distinguish types of values between strings and numbers
  • (5.0) understand simple expressions given by given command line parameters (+, -, *, / for numbers and + (concatenation) for strings)
  • (5.0) expressions with operrands of diff types or invalid operators are invalid

put-cawllp-ini's People

Contributors

bujowskis 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.