| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | sys: support type aliases (aka typedefs) | Dmitry Vyukov | 2018-01-08 | 1 | -0/+14 |
| | | | | | | | | | | | | | | | | | | | | | | | Complex types that are often repeated can be given short type aliases using the following syntax: ``` type identifier underlying_type ``` For example: ``` type signalno int32[0:65] type net_port proc[20000, 4, int16be] ``` Then, type alias can be used instead of the underlying type in any contexts. Underlying type needs to be described as if it's a struct field, that is, with the base type if it's required. However, type alias can be used as syscall arguments as well. Underlying types are currently restricted to integer types, `ptr`, `ptr64`, `const`, `flags` and `proc` types. | ||||
| * | pkg/ast: fix struct comment parsing | Dmitry Vyukov | 2017-09-04 | 1 | -0/+2 |
| | | |||||
| * | pkg/compiler: check and generate types | Dmitry Vyukov | 2017-09-02 | 1 | -2/+2 |
| | | | | | | | Move most of the logic from sysgen to pkg/compiler. Update #217 | ||||
| * | pkg/compiler: more static error checking | Dmitry Vyukov | 2017-08-27 | 1 | -1/+1 |
| | | | | | Update #217 | ||||
| * | pkg/compiler, sys/syz-sysgen: move const handling to pkg/compiler | Dmitry Vyukov | 2017-08-27 | 1 | -17/+25 |
| | | | | | Now pkg/compiler deals with consts. | ||||
| * | sys/syz-sysgen: switch to new parser | Dmitry Vyukov | 2017-08-18 | 1 | -0/+31 |
| | | | | | | For now we just generate the old structs from the new AST. But this allows to delete the old parser entirely. | ||||
| * | sys/syz-extract: switch to the new parser | Dmitry Vyukov | 2017-08-18 | 1 | -2/+11 |
| | | |||||
| * | pkg/ast: new parser for sys descriptions | Dmitry Vyukov | 2017-08-18 | 1 | -0/+423 |
| The old parser in sys/sysparser is too hacky, difficult to extend and drops debug info too early, so that we can't produce proper error messages. Add a new parser that is build like a proper language parser and preserves full debug info for every token. | |||||
