about summary refs log tree commit diff
path: root/xtask/src/codegen/gen_syntax.rs
AgeCommit message (Collapse)AuthorLines
2020-08-12Rename ra_syntax -> syntaxAleksey Kladov-1/+1
2020-08-01Update grammarAleksey Kladov-6/+5
2020-07-31Simplify trait gramamrAleksey Kladov-0/+2
2020-07-31Specify literal tokensAleksey Kladov-0/+1
2020-07-31Rename LambdaExpr -> ClosureExprAleksey Kladov-1/+13
2020-07-31Work on expressions grammarAleksey Kladov-0/+3
2020-07-31Item is a StmtAleksey Kladov-0/+3
2020-07-31Handwrite StmtAleksey Kladov-25/+26
2020-07-31Rename TypeRef -> TypeAleksey Kladov-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.
2020-07-30Remove TypeAscriptionOwnerAleksey Kladov-1/+0
2020-07-30Rename StructDef -> StructAleksey Kladov-1/+1
2020-07-30SimplifyAleksey Kladov-34/+24
2020-07-30Simplify codegenAleksey Kladov-21/+21
2020-07-30Rename TypeParamList -> GenericParamListAleksey Kladov-1/+1
2020-07-30Rename FnDef -> FnAleksey Kladov-5/+2
2020-07-30Add comma list to use treeAleksey Kladov-0/+35
2020-07-30Finish SourceFile grammarAleksey Kladov-1/+1
2020-07-29Switch to ungrammar from ast_srcAleksey Kladov-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
2020-07-29Owned AST IRAleksey Kladov-14/+15
2020-06-12Merge #4855bors[bot]-2/+2
4855: Use more idiomatic style for lifetimes in generated code r=matklad a=Veetaha Co-authored-by: Veetaha <veetaha2@gmail.com>
2020-06-12SimplifyVeetaha-1/+1
2020-06-12Use more idiomatic style for lifetimes in generated codeVeetaha-2/+2
2020-05-10Add ast docs to codegen scriptveetaha-2/+23
2020-05-02Introduce EffectExprAleksey Kladov-0/+1
2020-04-18Group generated ast boilerplate apart from the interesting partveetaha-120/+130
2020-04-10Rename some tokensAleksey Kladov-4/+4
2020-04-10Better readabilityAleksey Kladov-2/+3
2020-04-10Remove dead codeAleksey Kladov-11/+4
2020-04-10Generate only minimal set of ineresting tokensAleksey Kladov-0/+35
2020-04-10Scale token generation backAleksey Kladov-163/+19
2020-04-10Convert more tokensAleksey Kladov-0/+2
2020-04-10Other delimitersAleksey Kladov-0/+4
2020-04-10Start replacing tokensAleksey Kladov-0/+4
2020-04-10Semicolon tokenAleksey Kladov-2/+8
2020-04-10More readable ast_src for keywordsAleksey Kladov-34/+56
2020-04-09Simpler acessors for keywordsAleksey Kladov-8/+25
2020-04-09Add _token suffix to token accessorsAleksey Kladov-0/+1
I think this makes is more clear which things are : AstNode and which are : AstToken
2020-04-09Put displays at the endAleksey Kladov-12/+16
2020-04-09More compactAleksey Kladov-10/+2
2020-04-09Move the rest of the tokens to generated/tokensAleksey Kladov-80/+90
2020-04-09Move generated tokens to a separate fileAleksey Kladov-37/+61
2020-04-09Start ast/generated/tokensAleksey Kladov-3/+7
2020-04-09Prepare for spliting generated into tokens and nodesAleksey Kladov-1/+1
2020-04-09Cleanup importAleksey Kladov-2/+5
2020-04-09Scale back to only two traitsAleksey Kladov-29/+58
2020-04-09Scale back the traitsAleksey Kladov-140/+28
2020-04-08Add AstElement trait, generate tokens, support tokens in enumsLuca Barbieri-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
2020-03-11implementing Display for enums too.Fireassember-2/+8
2020-03-06added fmt::Display as a supertrait for AstNode and changed generation.Fireassember-0/+6
2020-01-16fix(xtask.gen_syntax.typo): add s to the verb that refers to the 3d personVeetaha-1/+1