Giter Site home page Giter Site logo

annoflex / annoflex Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 1.0 1.44 MB

An annotation-based code generator for lexical scanners

Home Page: https://annoflex.github.io/

License: BSD 3-Clause "New" or "Revised" License

Shell 0.01% Batchfile 0.01% Java 98.62% Yacc 1.37%
java lexer-generator annotations regex unicode

annoflex's Introduction

    ====================================================================
     AnnoFlex - An annotation-based code generator for lexical scanners
    ====================================================================

                                Version: 1.0

License
-------

This software and its additional material is copyrighted, it may only be used in
accordance with the terms and conditions as described in the file "license.txt"
which resides in the same directory as this file.


Installation
------------

The installation of AnnoFlex is easy. Just perform the following two environment
variable adjustments:
  
  * Create a new environment variable called ANNOFLEX_HOME which points to the
    root directory of your extracted AnnoFlex package.
  
  * Add an entry to your PATH environment variable which points relative to the
    bin directory of AnnoFlex. For example: %ANNOFLEX_HOME%/bin

That's it. AnnoFlex is now available in your system.

The default usage of AnnoFlex is "annoflex <MyScanner.java>", whereby
MyScanner.java is a Java source code file which contains a class with methods
marked with AnnoFlex processing instructions that are used to create the code of
the scanner. For more information about the usage of AnnoFlex have a look at the
manual.


IDE Integration
---------------

In order to be able to use AnnoFlex within an IDE it is recommended to add it as
an external tool. In Eclipse for Windows for example this could be performed as
following:

* Create a new external tool launch configuration with the name "AnnoFlex"
* Set the property "Main->Location" to "${env_var:ANNOFLEX_HOME}/bin/annoflex.bat"
* Set the property "Main->Arguments" to "${resource_loc}"

Configurations for other IDEs and platforms are similar. Simply specify the
executable and the current resource to be processed.


Requirements
------------

AnnoFlex requires Java 7 or higher.
Generated scanners are compatible to Java 1.1.


Folder Contents
---------------

%ANNOFLEX_HOME%
|
\-- bin\           Contains scripts to start AnnoFlex.
|
\-- examples\      Contains code examples.
|
\-- lib\           Contains the compiled source code of AnnoFlex.
|
\-- source\        Contains the source code of AnnoFlex.
|
\-- changelog.txt  A list of all changes and improvements of all
|                  versions of AnnoFlex.
|
\-- license.txt    The terms and conditions under which it is allowed
|                  to use and redistribute AnnoFlex.
|
\-- manual.pdf     The manual of AnnoFlex.
|
\-- readme.txt     Describes the most important things you need to know
                   about AnnoFlex.

Copyright
---------

Copyright (c) 2018, Stefan Czaska.
All rights reserved.

annoflex's People

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

trasd

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.