about summary refs log tree commit diff
path: root/xtask/src/codegen
AgeCommit message (Collapse)AuthorLines
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-21gen_assists_docs skip hidden filesJosh Mcguigan-7/+3
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-02-27Some docsAleksey Kladov-0/+2
2020-02-06Doctest autoimportAleksey Kladov-9/+33
2020-01-16fix(xtask.gen_syntax.typo): add s to the verb that refers to the 3d personVeetaha-1/+1
2020-01-10Use correct rustfmt for codegenAleksey Kladov-3/+3
closes #1569
2020-01-03Switch ast declaration from ron to a macroAleksey Kladov-136/+98
2019-11-13Use anyhow::Result in xtask, add contextsPascal Hertleif-2/+2
This builds on #2231 but was actually done before that. You see, the cause for #2231 was that I got this error message: Error: Error { kind: Io(Os { code: 2, kind: NotFound, message: "No such file or directory" }) } Just switching to `anyhow::Result` got me stack traces (when setting `RUST_LIB_BACKTRACE=1`) that at least showed stack backtrace: 0: std::backtrace::Backtrace::create 1: std::backtrace::Backtrace::capture 2: anyhow::error::<impl core::convert::From<E> for anyhow::Error>::from 3: xtask::install_server 4: xtask::install 5: xtask::main 6: std::rt::lang_start::{{closure}} 7: std::panicking::try::do_call 8: __rust_maybe_catch_panic 9: std::rt::lang_start_internal 10: std::rt::lang_start 11: main With the added contexts (not at all exhaustive), the error became Error: install server Caused by: 0: build AutoCfg with target directory 1: No such file or directory (os error 2) Since anyhow is such a small thing (no new transitive dependencies!), and in general gives you `Result<T, Box<dyn Error>>` on steroids, I think this a nice small change. The only slightly annoying thing was to replace all the `Err(format!(…))?` calls (haven't even looked at whether we can make it support wrapping strings though), but the `bail!` macro is shorter anyway :)
2019-10-30Some clippy fixeskjeremy-6/+4
2019-10-26use unicode bar for drawing the cursorAleksey Kladov-2/+6
2019-10-26check style for assist docsAleksey Kladov-0/+6
2019-10-26add blank lines for readabilityAleksey Kladov-1/+1
2019-10-25generate more assists docsAleksey Kladov-3/+7
2019-10-25auto-generate assists docs and testsAleksey Kladov-22/+126
2019-10-24refactor comment extraction from tasksAleksey Kladov-38/+20
2019-10-24simplifyAleksey Kladov-14/+13
2019-10-23xtask: don't depend on itertoolsAleksey Kladov-17/+22
xtask should be fast to compiler, as it's a gateway to rust-analyzer
2019-10-23xtask: move codegen to a moduleAleksey Kladov-0/+504