Skip to content

Correct spelling & grammar in 4.4 components/expression_language/ #16262

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 14, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions components/expression_language/ast.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
Dumping and Manipulating the AST of Expressions
===============================================

Manipulating or inspecting the expressions created with the ExpressionLanguage
component is difficult because they are plain strings. A better approach is to
It’s difficult to manipulate or inspect the expressions created with the ExpressionLanguage
component, because the expressions are plain strings. A better approach is to
turn those expressions into an AST. In computer science, `AST`_ (*Abstract
Syntax Tree*) is *"a tree representation of the structure of source code written
in a programming language"*. In Symfony, a ExpressionLanguage AST is a set of
Expand Down
2 changes: 1 addition & 1 deletion components/expression_language/caching.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ The ``evaluate()`` method needs to loop through the "nodes" (pieces of an
expression saved in the ``ParsedExpression``) and evaluate them on the fly.

To save time, the ``ExpressionLanguage`` caches the ``ParsedExpression`` so
it can skip the tokenize and parse steps with duplicate expressions. The
it can skip the tokenization and parsing steps with duplicate expressions. The
caching is done by a PSR-6 `CacheItemPoolInterface`_ instance (by default, it
uses an :class:`Symfony\\Component\\Cache\\Adapter\\ArrayAdapter`). You can
customize this by creating a custom cache pool or using one of the available
Expand Down
2 changes: 1 addition & 1 deletion components/expression_language/syntax.rst
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ Comparison Operators

$expressionLanguage->evaluate('not ("foo" matches "/bar/")'); // returns true

You must use parenthesis because the unary operator ``not`` has precedence
You must use parentheses because the unary operator ``not`` has precedence
over the binary operator ``matches``.

Examples::
Expand Down