about summary refs log tree commit diff
path: root/src/libsyntax/util/parser.rs
AgeCommit message (Collapse)AuthorLines
2019-09-26Rename `Expr.node` to `Expr.kind`varkor-1/+1
For both `ast::Expr` and `hir::Expr`.
2019-09-06reduce visibilityAleksey Kladov-1/+1
2019-08-12Bring back suggestion for splitting `<-` into `< -`Ilija Tovilo-0/+2
Closes #62632
2019-07-30Unsupport the await!(..) macro.Mazdak Farrokhzad-1/+1
2019-06-23let_chains: Fix bugs in pretty printing.Mazdak Farrokhzad-0/+16
2019-06-23let_chains: Add support for parsing let expressions.Mazdak Farrokhzad-4/+3
2019-06-14Change `...` to `..=` where applicableAaron Kutch-1/+1
2019-06-08syntax: Move most of the `TokenKind` methods to `Token`Vadim Petrochenkov-3/+3
2019-06-06syntax: Rename `Token` into `TokenKind`Vadim Petrochenkov-2/+2
2019-06-06Always use token kinds through `token` module rather than `Token` typeVadim Petrochenkov-25/+25
2019-05-24Remove `ObsoleteInPlace`varkor-10/+4
2019-05-22Simplify use of keyword symbolsVadim Petrochenkov-2/+2
2019-05-09Rollup merge of #60188 - estebank:recover-block, r=varkorMazdak Farrokhzad-0/+25
Identify when a stmt could have been parsed as an expr There are some expressions that can be parsed as a statement without a trailing semicolon depending on the context, which can lead to confusing errors due to the same looking code being accepted in some places and not others. Identify these cases and suggest enclosing in parenthesis making the parse non-ambiguous without changing the accepted grammar. Fix #54186, cc #54482, fix #59975, fix #47287.
2019-05-07Implement built-in await syntaxTaylor Cramer-0/+3
Adds support for .await under the existing async_await feature gate. Moves macro-like await! syntax to the await_macro feature gate. Removes support for `await` as a non-keyword under the `async_await` feature.
2019-05-06review comments: fix typo and add commentsEsteban Küber-1/+4
2019-04-29Identify when a stmt could have been parsed as an exprEsteban Küber-0/+22
There are some expressions that can be parsed as a statement without a trailing semicolon depending on the context, which can lead to confusing errors due to the same looking code being accepted in some places and not others. Identify these cases and suggest enclosing in parenthesis making the parse non-ambiguous without changing the accepted grammar.
2019-02-10rustc: doc commentsAlexander Regueiro-2/+2
2019-02-07libsyntax => 2018Taiki Endo-10/+10
2018-12-27AST/HIR: Introduce `ExprKind::Err` for better error recovery in the front-endVadim Petrochenkov-1/+3
2018-12-25Remove licensesMark Rousskov-9/+0
2018-12-07Various minor/cosmetic improvements to codeAlexander Regueiro-2/+2
2018-08-19Rename `Catch` variants to `TryBlock`Scott McMurray-2/+2
(Not `Try` since `QuestionMark` is using that.)
2018-07-14Remove most of `PartialEq` impls from AST and HIR structuresVadim Petrochenkov-17/+3
2018-06-21async await desugaring and testsTaylor Cramer-0/+2
2018-05-24restore emplacement syntax (obsolete)Niko Matsakis-5/+11
2018-04-12AST/HIR: Merge field access expressions for named and numeric fieldsVadim Petrochenkov-3/+0
2018-04-03Remove all unstable placement featuresAidan Hobson Sayers-10/+4
Closes #22181, #27779
2018-01-15Move `ExprPrecedence` to `libsyntax/util/parser.rs`Esteban Küber-0/+126
2018-01-15Use single source of truth for expr precedenceEsteban Küber-61/+1
Introduce a new unified type that holds the expression precedence for both AST and HIR nodes.
2017-11-06Using `...` in expressions is now an errorBadel2-1/+2
2017-09-22Add support for `..=` syntaxAlex Burka-8/+9
Add ..= to the parser Add ..= to libproc_macro Add ..= to ICH Highlight ..= in rustdoc Update impl Debug for RangeInclusive to ..= Replace `...` to `..=` in range docs Make the dotdoteq warning point to the ... Add warning for ... in expressions Updated more tests to the ..= syntax Updated even more tests to the ..= syntax Updated the inclusive_range entry in unstable book
2017-09-07pprust: increase precedence of block-like exprsStuart Pernsteiner-11/+9
2017-09-06pprust: fix parenthesization of exprsStuart Pernsteiner-1/+105
2016-11-20Move `syntax::util::interner` -> `syntax::symbol`, cleanup.Jeffrey Seyfried-1/+2
2016-02-27libsyntax: parse inclusive rangesAlex Burka-5/+9
2016-02-11[breaking-change] don't glob export ast::BinOp_Oliver Schneider-40/+40
2015-12-16Add ExprType to HIR and make everything compileVadim Petrochenkov-7/+9
+ Apply parser changes manually + Add feature gate
2015-10-27Fix restrictions when parsing rhs of equalitiesSimonas Kazlauskas-0/+10
2015-10-27Fix prefix range expressions being not parsedSimonas Kazlauskas-0/+9
2015-10-27Generalise associative operator parsingSimonas Kazlauskas-0/+191
This commit generalises parsing of associative operators from left-associative only (with some ugly hacks to support right-associative assignment) to properly left/right-associative operators. Parsing still is not general enough to handle non-associative, non-highest-precedence prefix or non-highest-precedence postfix operators (e.g. `..` range syntax), though. That should be fixed in the future. Lastly, this commit adds support for parsing right-associative `<-` (left arrow) operator with precedence higher than assignment as the operator for placement-in feature.