aboutsummaryrefslogtreecommitdiff
path: root/xtask/src/codegen/gen_syntax.rs
Commit message (Collapse)AuthorAgeFilesLines
* Update grammarAleksey Kladov2020-08-011-6/+5
|
* Simplify trait gramamrAleksey Kladov2020-07-311-0/+2
|
* Specify literal tokensAleksey Kladov2020-07-311-0/+1
|
* Rename LambdaExpr -> ClosureExprAleksey Kladov2020-07-311-1/+13
|
* Work on expressions grammarAleksey Kladov2020-07-311-0/+3
|
* Item is a StmtAleksey Kladov2020-07-311-0/+3
|
* Handwrite StmtAleksey Kladov2020-07-311-25/+26
|
* Rename TypeRef -> TypeAleksey Kladov2020-07-311-1/+7
| | | | | | | | | | The TypeRef name comes from IntelliJ days, where you often have both type *syntax* as well as *semantical* representation of types in scope. And naming both Type is confusing. In rust-analyzer however, we use ast types as `ast::Type`, and have many more semantic counterparts to ast types, so avoiding name clash here is just confusing.
* Remove TypeAscriptionOwnerAleksey Kladov2020-07-301-1/+0
|
* Rename StructDef -> StructAleksey Kladov2020-07-301-1/+1
|
* SimplifyAleksey Kladov2020-07-301-34/+24
|
* Simplify codegenAleksey Kladov2020-07-301-21/+21
|
* Rename TypeParamList -> GenericParamListAleksey Kladov2020-07-301-1/+1
|
* Rename FnDef -> FnAleksey Kladov2020-07-301-5/+2
|
* Add comma list to use treeAleksey Kladov2020-07-301-0/+35
|
* Finish SourceFile grammarAleksey Kladov2020-07-291-1/+1
|
* Switch to ungrammar from ast_srcAleksey Kladov2020-07-291-4/+220
| | | | | | | | | | | | | | | | | | The primary advantage of ungrammar is that it (eventually) allows one to describe concrete syntax tree structure -- with alternatives and specific sequence of tokens & nodes. That should be re-usable for: * generate `make` calls * Rust reference * Hypothetical parser's evented API We loose doc comments for the time being unfortunately. I don't think we should add support for doc comments to ungrammar -- they'll make grammar file hard to read. We might supply docs as out-of band info, or maybe just via a reference, but we'll think about that once things are no longer in flux
* Owned AST IRAleksey Kladov2020-07-291-14/+15
|
* Merge #4855bors[bot]2020-06-121-2/+2
|\ | | | | | | | | | | | | | | 4855: Use more idiomatic style for lifetimes in generated code r=matklad a=Veetaha Co-authored-by: Veetaha <[email protected]>
| * Use more idiomatic style for lifetimes in generated codeVeetaha2020-06-111-2/+2
| |
* | SimplifyVeetaha2020-06-121-1/+1
|/
* Add ast docs to codegen scriptveetaha2020-05-101-2/+23
|
* Introduce EffectExprAleksey Kladov2020-05-021-0/+1
|
* Group generated ast boilerplate apart from the interesting partveetaha2020-04-181-120/+130
|
* Rename some tokensAleksey Kladov2020-04-101-4/+4
|
* Better readabilityAleksey Kladov2020-04-101-2/+3
|
* Remove dead codeAleksey Kladov2020-04-101-11/+4
|
* Generate only minimal set of ineresting tokensAleksey Kladov2020-04-101-0/+35
|
* Scale token generation backAleksey Kladov2020-04-101-163/+19
|
* Convert more tokensAleksey Kladov2020-04-101-0/+2
|
* Other delimitersAleksey Kladov2020-04-101-0/+4
|
* Start replacing tokensAleksey Kladov2020-04-101-0/+4
|
* Semicolon tokenAleksey Kladov2020-04-101-2/+8
|
* More readable ast_src for keywordsAleksey Kladov2020-04-101-34/+56
|
* Simpler acessors for keywordsAleksey Kladov2020-04-091-8/+25
|
* Add _token suffix to token accessorsAleksey Kladov2020-04-091-0/+1
| | | | | I think this makes is more clear which things are : AstNode and which are : AstToken
* Put displays at the endAleksey Kladov2020-04-091-12/+16
|
* More compactAleksey Kladov2020-04-091-10/+2
|
* Move the rest of the tokens to generated/tokensAleksey Kladov2020-04-091-80/+90
|
* Move generated tokens to a separate fileAleksey Kladov2020-04-091-37/+61
|
* Start ast/generated/tokensAleksey Kladov2020-04-091-3/+7
|
* Prepare for spliting generated into tokens and nodesAleksey Kladov2020-04-091-1/+1
|
* Cleanup importAleksey Kladov2020-04-091-2/+5
|
* Scale back to only two traitsAleksey Kladov2020-04-091-29/+58
|
* Scale back the traitsAleksey Kladov2020-04-091-140/+28
|
* Add AstElement trait, generate tokens, support tokens in enumsLuca Barbieri2020-04-081-29/+269
| | | | | | | | | - Adds a new AstElement trait that is implemented by all generated node, token and enum structs - Overhauls the code generators to code-generate all tokens, and also enhances enums to support including tokens, node, and nested enums
* implementing Display for enums too.Fireassember2020-03-111-2/+8
|
* added fmt::Display as a supertrait for AstNode and changed generation.Fireassember2020-03-061-0/+6
|
* fix(xtask.gen_syntax.typo): add s to the verb that refers to the 3d personVeetaha2020-01-151-1/+1
|
* Use correct rustfmt for codegenAleksey Kladov2020-01-101-2/+2
| | | | closes #1569