Git Product home page Git Product logo

awka's Introduction

Awka

C/C++ CI

This is a fork and enhanced version of Awka.

Awka - Open Source, AWK to C Conversion

Awka is not an interpreter like Gawk, Mawk or Nawk, but instead it converts the program to ANSI-C, then compiles this using gcc or a native C compiler to create a binary executable.

-- http://awka.sourceforge.net/index.html

  • Awka has two main parts: a translator and a library.
  • awka translate a Awk script into C code
  • libawka is used as link library to compile the generated C code.

Why compile Awk script into C program?

  • C program probably run faster.
  • "AWK programs are limited to what the interpreter provides".
  • "C code can be compiled with other code into a larger application."
  • "migrate stable functions from AWK to C" to impove performance.
  • Reuse existing C functions in Awk script.
  • A way of protect your Awk script.

Actually, the mixing use of Awk and C provide provide an interesting way of writing programs.

Revive Awka

Awka is an "old" project. Its last change 0.7.5 was on June 20 2001.

And to fill my usage requirement, some of my update to the code go much furhter than traditional "Awk".

What's new in "Revive Awka"?

  • Fix bugs in awka-0.7.5
  • Add libawka builtin function fseek and ftell to increase performance.
  • Add glob style matching, which shold be faster than regular expression in many case.
  • Lazy calling of line split function to increase performance.
  • Use nstring other than NULL terminated C string to avoid string copy.

What to do next?

  • Continue bug fixing.
  • Continue libawka performance improvement.
  • Support flexibl synax in the "Awk" script.
    • For example, add direct Tcl language support.
  • Make it thread safe to support processing multiple files in parallel.

awka's People

Contributors

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