You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Guillaume Nodet (JIRA)" <ji...@apache.org> on 2015/01/26 11:52:35 UTC

[jira] [Resolved] (FELIX-4671) Provide an expression parser

     [ https://issues.apache.org/jira/browse/FELIX-4671?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Guillaume Nodet resolved FELIX-4671.
------------------------------------
    Resolution: Fixed
      Assignee: Guillaume Nodet  (was: J.W. Janssen)

I just pushed a new syntax which should be compatible with the previous one.
It now uses %(xxx) to evaluate expressions.  Let me know if it causes you any problems.

Committing to https://svn.apache.org/repos/asf/felix/trunk ...
	A	gogo/runtime/src/main/java/org/apache/felix/gogo/runtime/Expression.java
	A	gogo/runtime/src/test/java/org/apache/felix/gogo/runtime/TestParser3.java
	A	gogo/runtime/src/test/java/org/apache/felix/gogo/runtime/expr/ExpressionTest.java
	M	gogo/runtime/NOTICE
	M	gogo/runtime/src/main/java/org/apache/felix/gogo/runtime/Closure.java
	M	gogo/runtime/src/main/java/org/apache/felix/gogo/runtime/CommandProcessorImpl.java
	M	gogo/runtime/src/main/java/org/apache/felix/gogo/runtime/CommandSessionImpl.java
	M	gogo/runtime/src/main/java/org/apache/felix/gogo/runtime/Parser.java
	M	gogo/runtime/src/main/java/org/apache/felix/gogo/runtime/Tokenizer.java
	M	gogo/runtime/src/test/java/org/apache/felix/gogo/runtime/Context.java
Committed r1654761


> Provide an expression parser
> ----------------------------
>
>                 Key: FELIX-4671
>                 URL: https://issues.apache.org/jira/browse/FELIX-4671
>             Project: Felix
>          Issue Type: New Feature
>          Components: Gogo Runtime
>            Reporter: Guillaume Nodet
>            Assignee: Guillaume Nodet
>             Fix For: gogo.runtime-0.14.0
>
>
> Gogo provides no way to do arithmetic operations or to provide boolean operators.
> This makes writing scripted loops or conditions extremely difficult.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)