Giter Site home page Giter Site logo

akiezun / hampi Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 21.01 MB

Automatically exported from code.google.com/p/hampi

License: Other

Makefile 0.45% Standard ML 9.25% OCaml 1.75% C 4.67% C++ 13.19% Perl 4.64% Java 64.90% GAP 0.74% Shell 0.07% Python 0.33%

hampi's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

hampi's Issues

path to jni.h broken

linux systems often come with openjdk installed instead of sun-java. Thus
the correct java path could be  any one of
/usr/lib/jvm/java-6-openjdk/include/ or /usr/lib/jvm/java-6-sun/include.
The current configure scripts and makefiles assume the later resulting in
errors during make if you don't have the sun-java6-jdk package installed.

Original issue reported on code.google.com by [email protected] on 4 Mar 2010 at 7:02

Parser error with multiple asserts and ranges

Run this:

var v : 1;
cfg R := ['a' - 'b'];
assert v in R;
assert v in R;

Should return 'a' or 'b'. Instead, throws exception:
distributions in bounding: 0ms (3 times)
grammar bounding for R: 27ms (1 times)

java.lang.IllegalArgumentException: Cannot find nonterminal rangea_b in
grammar: R = rangea_b  ;

at
hampi.grammars.apps.UnreachableNonterminalRemover.getReachableNonterminals(Unrea
chableNonterminalRemover.java:62)
at
hampi.grammars.apps.UnreachableNonterminalRemover.removeUnreachableNonterminals(
UnreachableNonterminalRemover.java:76)
at
hampi.grammars.apps.EpsilonProductionRemover.removeEpsilonProductions(EpsilonPro
ductionRemover.java:52)
at
hampi.grammars.apps.GrammarStringBounder.getBoundedRegexp(GrammarStringBounder.j
ava:51)
at
hampi.parser.HConstraintPreparer.prepareSizeFixRegexp(HConstraintPreparer.java:2
16)
at hampi.parser.HConstraintPreparer.prepareIn(HConstraintPreparer.java:132)
at hampi.parser.HConstraintPreparer.prepare(HConstraintPreparer.java:47)
at hampi.parser.HConstraintPreparer.prepare(HConstraintPreparer.java:34)
at hampi.Hampi.run(Hampi.java:283)
at hampi.Hampi.run(Hampi.java:259)
at hampi.Hampi.main(Hampi.java:238)


Original issue reported on code.google.com by [email protected] on 2 Feb 2010 at 1:50

Out of memory in grammar bounding

This should go through really fast because all sizes are fixed. Instead, it
blows up.

var string:75;
cfg q2 := \104 \116 \116 \112 \058 \047 \047 \057 \056;
cfg q3 := \046;
cfg q4 := \049 \051 \048;
cfg q5 := \046;
cfg q6 := \050 \052 \057;
cfg q7 := \046;
cfg q8 := \053 \055 \047 \098 \050 \101 \118 \111 \108 \117 \116 \105  
\111 \110 \047 \097 \100 \109 \105 \110;
cfg q9 := \046;
cfg q10 := \112 \104 \112;
cfg q11 := \063;
cfg q12 := \099 \116 \114 \108 \061 \105 \116 \101 \109 \115 \038  
\102 \105 \108 \116 \101 \114 \061 \114 \101 \115 \116 \111 \114 \101  
\038 \098 \108 \111 \103 \061 \049;
cfg q1 := q2 q3 q4 q5 q6 q7 q8 q9 q10 q11 q12;
cfg flax0 := q1;

assert string in flax0; 

Original issue reported on code.google.com by [email protected] on 3 Feb 2010 at 6:19

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.