Coder Social home page Coder Social logo

k-javalette's People

Contributors

bbyalcinkaya avatar amelieled avatar hjorthjort avatar

Watchers

James Cloos avatar  avatar  avatar

k-javalette's Issues

[Warning when compiling] `Compiler: Potentially useless rule detected.`

According to the following error extracts:

[Warning] Compiler: Potentially useless rule detected.
	Source(~/k-javalette/src/core/javalette-types.md)
	Location(167,10,167,35)
	167 |	    rule isLValue(_:Bool) => false
	    .	         ^~~~~~~~~~~~~~~~~~~~~~~~~
[Warning] Compiler: Potentially useless rule detected.
	Source(~/k-javalette/src/core/javalette-types.md)
	Location(168,10,168,34)
	168 |	    rule isLValue(_:Int) => false
	    .	         ^~~~~~~~~~~~~~~~~~~~~~~~
[Warning] Compiler: Potentially useless rule detected.
	Source(~/k-javalette/src/core/javalette-types.md)
	Location(169,10,169,36)
	169 |	    rule isLValue(_:Float) => false
	    .	         ^~~~~~~~~~~~~~~~~~~~~~~~~~
[Warning] Compiler: Potentially useless rule detected.
	Source(~/k-javalette/src/core/javalette-types.md)
	Location(170,10,170,37)
	170 |	    rule isLValue(_:String) => false
	    .	         ^~~~~~~~~~~~~~~~~~~~~~~~~~~

and

[Warning] Compiler: Potentially useless rule detected.
	Source(~/k-javalette/src/extensions/arrays.md)
	Location(166,10,166,39)
	166 |	    rule isLValue(_ . length) => false      [owise]
	    .	         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

and

[Warning] Compiler: Potentially useless rule detected.
	Source(~/k-javalette/src/extensions/arrays.md)
	Location(102,9,104,29)
	    .	        v~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
	102 |	        <k> #elemAccess(array(Loc, Len), Ix) => X ...</k>
	103 |	        <store> ... (Loc +Int Ix ) |-> X ... </store>
	104 |	        requires Len >Int Ix
	    .	        ~~~~~~~~~~~~~~~~~~~^

some rules are potentially useless.

[Warning when compiling] `Compiler: Non exhaustive match detected`

According to the following error extract:

[Warning] Compiler: Non exhaustive match detected:
`retcheckStmt(_)_JAVALETTE-RETURNCHECK_Bool_Stmt`(`if(_)__JAVALETTE-SYNTAX-CORE_Stmt_Exp_Stmt`(_,_))
	Source(~/k-javalette/src/core/javalette-returncheck.md)
	Location(32,21,32,57)
	32 |	    syntax Bool ::= retcheckStmt(Stmt) [function, total]
	   .	                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[Warning] Compiler: Non exhaustive match detected:
`isLValue(_)_JAVALETTE-TYPES_Bool_Exp`(`#elemAccess(_,_)_JAVALETTE-ARRAYS_Exp_Exp_Exp`(_,_))
	Source(~/k-javalette/src/core/javalette-types.md)
	Location(165,21,165,51)
	165 |	    syntax Bool ::= isLValue(Exp) [function,total]
	    .	                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

the symbols retcheckStmt and isLValue are declared total/functional but aren't.

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.