Émilie Feral
e7c95c3583
[apps] Change messages of VariableBoxEmptyController
2018-11-23 12:04:05 +01:00
Léa Saviot
d686199111
[code] Delete script when aborting edition with no default name
2018-11-23 12:04:05 +01:00
Léa Saviot
e74e15eaf7
[apps/code] Handle too many Script default names used
...
When adding to many scripts without naming them, one can overflow the
number of default generated script names, in which case we force the
user to enter a name.
2018-11-23 12:04:05 +01:00
Léa Saviot
0f9d1db851
[apps/code] Fix break that should be a return
2018-11-23 12:04:05 +01:00
Léa Saviot
58c022a9a9
[apps/code] Allow any number of scripts
2018-11-23 12:04:05 +01:00
Léa Saviot
bdbae0777e
[poincare] Add Store tests
2018-11-23 12:04:05 +01:00
Léa Saviot
7b2abfe591
Fix typo
2018-11-23 12:04:05 +01:00
Léa Saviot
8595b5f811
[apps] Translate the "Function cannot contain a Store" message
2018-11-23 12:04:05 +01:00
Ruben Dashyan
3d48f8ac93
[poincare] Complete and clean Parser
2018-11-23 12:04:05 +01:00
Ruben Dashyan
952f1e9292
[poincare] Parser's popTokenUntil changed to nextTokenHasPrecedenceOver
2018-11-23 12:04:05 +01:00
Ruben Dashyan
c97996696e
[poincare] Complete and clean Parser's Tokenizer
2018-11-23 12:04:05 +01:00
Ruben Dashyan
5f734c3f4c
[poincare] Add a string member to Parser's Token class
...
in the form of a pair m_text, m_length. Note that m_text
is not null-terminated. Moreover, the method compareTo is implemented
to compare m_text to any other (null-terminated) string.
2018-11-23 12:04:05 +01:00
Ruben Dashyan
3bee0f35fa
[poincare] Add UntypedBuilder Function and Symbol
...
UntypedBuilders moreover retrieve Expression value from context.
2018-11-23 12:04:05 +01:00
Ruben Dashyan
efde8c6c9e
[liba] Add strncmp
2018-11-23 12:04:05 +01:00
Ruben Dashyan
93d8f60619
[poincare] Derivative, Integral, Product, Sum constructors check
...
their second parameter is of Symbol type.
2018-11-23 12:04:05 +01:00
Ruben Dashyan
4b72e4cef2
[poincare] Function constructor has additional length paramater
2018-11-23 12:04:05 +01:00
Ruben Dashyan
603e672cf3
[poincare] Add parsing tests
2018-11-23 12:04:05 +01:00
Ruben Dashyan
9c5ea70c24
[poincare] Make derived Expression s_functionHelper constexpr
2018-11-23 12:04:05 +01:00
Ruben Dashyan
61b1b8a09d
[poincare] Add Expression::FunctionHelper class
...
That class is meant to contain data about named functions (e.g. sin,
tan...) in one place: their name, their number of children and a pointer to
a builder. The derived class corresponding to each such function
contains a private instance (m_functionHelper) and a getter.
The previous parser is removed, along with unecessary
constructors (used by the previous parsers).
2018-11-23 12:04:05 +01:00
Ruben Dashyan
cda6f522f0
[poincare] New static NumberOfChildren() method in Expression subclasses
2018-11-23 12:04:05 +01:00
Ruben Dashyan
e2e5fd6551
[poincare] Delete an accidentally inserted line in Randint
2018-11-23 12:04:05 +01:00
Ruben Dashyan
23c07e02ca
[poincare] New static Name() method in Expression subclasses
...
Replaces the name() method in ExpressionNode subclasses.
When necessary, the createLayout and serialize methods in thoses
subclasses were moved to their .cpp file.
2018-11-23 12:04:05 +01:00
Ruben Dashyan
a859b69939
[poincare] No default type for Token constructor
2018-11-23 12:04:05 +01:00
Ruben Dashyan
799e59b031
[poincare] raiseError method in Parser
2018-11-23 12:04:05 +01:00
Ruben Dashyan
dd5bd7f39c
[poincare] Parsing error handling for bang token
2018-11-23 12:04:05 +01:00
Ruben Dashyan
b27f98c287
[poincare] Rename Power Token as Caret
2018-11-23 12:04:04 +01:00
Ruben Dashyan
6c52a62168
[poincare] Use const-ref when parsing
2018-11-23 12:04:04 +01:00
Ruben Dashyan
c1943cfb49
[poincare] Correct stoppingType for parseSlash
2018-11-23 12:04:04 +01:00
Ruben Dashyan
20a1e048de
[poincare] Simpler precedence comparison in parser
2018-11-23 12:04:04 +01:00
Ruben Dashyan
f5cbd56ac0
[poincare] Reorder Token::Types for Parser
2018-11-23 12:04:04 +01:00
Ruben Dashyan
4ec78a4f56
[poincare] Include matrix header
2018-11-23 12:04:04 +01:00
Ruben Dashyan
f6bdc2611e
[poincare] Add a comment about the parser's nature
2018-11-23 12:04:04 +01:00
Ruben Dashyan
cbf304b342
[poincare] Add const qualifier in tokenizer
2018-11-23 12:04:04 +01:00
Ruben Dashyan
6450a79022
[poincare] Add EE char from Ion charset to tokenizer
2018-11-23 12:04:04 +01:00
Ruben Dashyan
18d122faa1
[poincare] Correct square root precedence in parser
2018-11-23 12:04:04 +01:00
Ruben Dashyan
dea52a2df1
[poincare] Include Ion Charset in Tokenizer
2018-11-23 12:04:04 +01:00
Ruben Dashyan
281dd16838
[poincare] Simpler precedence comparison in parser
2018-11-23 12:04:04 +01:00
Ruben Dashyan
2e88df876b
[poincare] Parser composes over Tokenizer instead of inherting from it
2018-11-23 12:04:04 +01:00
Ruben Dashyan
06fda37e2b
[poincare] Don't manually pop RightParenthesis
2018-11-23 12:04:04 +01:00
Ruben Dashyan
de0efe69f2
[poincare] Use a recursive-descent-alike parser
2018-11-23 12:04:04 +01:00
Ruben Dashyan
d0f2a54d6d
[poincare] Second version of homemade parser
...
Using function stack instead of auxiliary stack.
2018-11-23 12:04:04 +01:00
Émilie Feral
2b87c735d3
[poincare] Number: add a new constructor to parse Number
2018-11-23 12:04:04 +01:00
Ruben Dashyan
8d203aaf48
[poincare] Start implementing a new parser
2018-11-23 12:04:04 +01:00
Léa Saviot
b3f5bf13de
[apps/escher] Code layouting and typo
2018-11-23 12:04:04 +01:00
Léa Saviot
b9bf5be5f6
[apps/escher] Remove wrong markRectAsDirty, use reloadCell instead
2018-11-23 12:04:04 +01:00
Léa Saviot
f47a6549b8
[escher] Remove duplicate Stack in Toolbox and NestedMenuController
...
This created a bug for instance when going deep down in the Python
toolbox, then going one step up: the user arrived in the highest menu
2018-11-23 12:04:04 +01:00
Léa Saviot
9ee0f94ba4
[apps] Reload VariableBox cells before displaying them
2018-11-23 12:04:04 +01:00
Léa Saviot
549c9ed1fd
[apps] Fix variable box layout memoization
...
Reset the memoization when changing the variable box tab
2018-11-23 12:04:04 +01:00
Léa Saviot
7c4b7495f3
[apps/poincare] Inline some methods
2018-11-23 12:04:04 +01:00
Léa Saviot
fbe4c14d0d
[apps] Prevent function defined as a store
...
For instance, from the Graph application, one should not be able to
defined f(x) as 3->g(x)
2018-11-23 12:04:04 +01:00