Commit Graph

12 Commits

Author SHA1 Message Date
Zheng, Lei
36f7098257 App: extend Expression syntax
* Support sub-object reference syntax using the following syntax,
    Part.<<Box.>>.Placement
  or, with sub-object label referencing
    Part.<<$Cube.>>.Placement

* Extend indexing support, including range based indexing, e.g.
    A1[B2+1][C3][D4:-1]

* Add new constants, None, True, true, False, false.
2019-09-28 15:31:24 +02:00
Zheng, Lei
8cbdc3ad5d App: use Python number protocol in Expression
This adds support to do mul/div with matrix and vector, as well as
Python formated string with operator %.
2019-09-28 15:30:34 +02:00
Zheng, Lei
58a62288a0 App: allow starting '_' in an expression identifier
It's a signle line change in the flex source, bug a big change in the
generated source.
2019-08-30 14:47:53 +02:00
wandererfan
64e7f47eee Add support for DMS angles to Expressions 2018-12-23 11:03:02 -02:00
wandererfan
ea4ac8ff68 Revert Erroneous Change to parser
- ExpressionParser.y changed in error by commit
  00e6376c.  Regen ExpressionParser.tab.c and
  lex.ExpressionParser.c
2018-12-14 19:30:49 +01:00
wmayer
fb7094bf31 use specialized exception classes 2017-04-28 18:49:11 +02:00
wmayer
a0af969a47 recreate lexer files without deprecated register keyword 2016-12-29 23:18:23 +01:00
Eivind Kvedalen
b5e44436f1 Expressions: Added support for aggregate functions and ranges. 2016-04-02 12:01:04 +02:00
Eivind Kvedalen
0458ba6561 Expressions: Added code to throw under/overflow exceptions. 2016-03-08 16:09:29 +01:00
Eivind Kvedalen
e063c25b69 Expressions: Turned off debug output/tracing for expression parser. 2016-03-08 16:09:26 +01:00
Eivind Kvedalen
417fdcf565 Expression parser: Fixed parsing of numbers like 2e3 (with e/E, but without decimal part). 2015-09-23 20:05:01 +02:00
Eivind Kvedalen
ae388d26ea Added Expression classes to App directory. Added Expression interface to Property base class. 2015-09-21 14:51:02 +02:00