aboutsummaryrefslogtreecommitdiff
path: root/xtask/src/codegen
Commit message (Collapse)AuthorAgeFilesLines
* 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
|/
* Don't store generated docs in the repoAleksey Kladov2020-06-031-5/+6
|
* Link to the specific source lineAleksey Kladov2020-05-312-2/+5
|
* Move assists documentation into the manualAleksey Kladov2020-05-312-53/+40
|
* Force / slashes on windowsAleksey Kladov2020-05-311-2/+3
|
* Tweak whitespaceAleksey Kladov2020-05-311-2/+2
|
* Move the rest of the features to generated docsAleksey Kladov2020-05-311-2/+2
|
* Specify actionsAleksey Kladov2020-05-311-5/+20
|
* Generate features docs from sourceAleksey Kladov2020-05-311-0/+72
|
* GeneralizeAleksey Kladov2020-05-301-7/+3
|
* minorAleksey Kladov2020-05-301-71/+73
|
* Add ast docs to codegen scriptveetaha2020-05-101-2/+23
|
* RegenerateAleksey Kladov2020-05-061-2/+2
|
* 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
* gen_assists_docs skip hidden filesJosh Mcguigan2020-03-211-7/+3
|
* 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
|
* Some docsAleksey Kladov2020-02-271-0/+2
|
* Doctest autoimportAleksey Kladov2020-02-061-9/+33
|
* 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-102-3/+3
| | | | closes #1569
* Switch ast declaration from ron to a macroAleksey Kladov2020-01-031-136/+98
|
* Use anyhow::Result in xtask, add contextsPascal Hertleif2019-11-131-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 :)
* Some clippy fixeskjeremy2019-10-302-6/+4
|
* use unicode bar for drawing the cursorAleksey Kladov2019-10-261-2/+6
|