Git Product home page Git Product logo

tokenizer's Introduction

1. code_check.pl

This Perl program performs a check of 'C Programs'. Here I have written a code that checks for an assignment
statement made by mistake inside an if statement.
example
if (x = y) {

}

is an erroneous if statement.

Such a statement is then redirected to the output_codecheck file. You could check that file to see how the 
erroneous if statement is identified and outputted.

2. token.pl
This Perl program is a sample Tokenizer built using Perl's built-in function - split().

I have create the sample inuput file - Perl.

Its basically an ASCII form of the Wikipedia page which talks about perl : 
http://en.wikipedia.org/wiki/Perl

I have applied tokenization to this file and have redirected the output to 
output_token.txt 

I have also attached the output_*.txt for reference.

Have included different methods to perform parsing on the text file.


3. parsewords.pl
This Perl program is a better way of performing tokenization based on whitespaces. 
I have used the library and the shellwords () function to do whitespacing tokenization.

4. datastructures.pl
This Perl program includes a simple implementation of the Stack Data structure using Perl.

5. http.pl
This Perl program connects to the specified URL and the response header is stored in a string along with 
the html content

tokenizer's People

Contributors

codeathon avatar

Stargazers

 avatar

Watchers

James Cloos avatar  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.