Giter Site home page Giter Site logo

screen-formatter's Introduction

screenFormatter

This repo is for a screenformatter implemented in 4 languages. (Ada, Cobol, Fortran, and Lisp)

Author: Nolan Donley

Input: any text file

Output: text file formatter to maximum 60 chars per Line and also the line with most and least words

For Ada:

-To compile: gnatmake formatter.adb

-To run: formatter {absolute filepath}

For Cobol:

-To compile: cobc -x formatter.cob

-To run: ./formatter {absolute filepath}

For Fortran:

-To compile: gfortran formatter.f95

-To run: ./a.out {absolute filepath}

For Lisp:

-To compile and run: sbcl --script formatter.lisp {absolute filepath}

Example Run in Ada

testfile.txt

    93The quick brown fox jumped over the lazy
    dog and then ran to the hen-house where he ate the rooster and all of the chickens.
    94The brown fox then made a dessert of the
    white protein packets with the hard
    shell and creamy yellow     center.

On command line:

[]$ gnatmake formatter.adb

    gcc -c formatter.adb
    gnatbind -x formatter.ali
    gnatlink formatter.ali

[]$ formatter /home/donley_ns/screenformatter/testfile.txt

            1  The quick brown fox jumped over the lazy dog and then ran to
            2  the hen-house where he ate the rooster and all of the
            3  chickens. The brown fox then made a dessert of the white
            4  protein packets with the hard shell and creamy yellow
            5  center.

    LONG    1           The quick brown fox jumped over the lazy dog and then ran to
    SHORT   5           center.  

screen-formatter's People

Contributors

nolandonley14 avatar

Stargazers

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