From d10c1c36a9d928a0d46cb4c30e9a8cdfd5516181 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Sun, 15 Mar 2020 09:21:31 +0100 Subject: [PATCH] contributing.md: minor fixes --- CONTRIBUTING.md | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 3f0454b496..596b4ca89f 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -17,17 +17,16 @@ The main files are: - Creates a parser object for each file and runs `parse()` on them. - The correct backend is called (C, JS, x64), and a binary is compiled. -2. `v/parser` The parser. It converts a list of tokens into an AST. - - In V, objects can be used before declaration, so unknown types are marked as unresolved. - They are resolved later in the type checker. - -3. `v/scanner` The scanner's job is to parse a list of characters and convert +2. `v/scanner` The scanner's job is to parse a list of characters and convert them to tokens. -4. `v/token` This is simply a list of all tokens, their string values, and a +3. `v/token` This is simply a list of all tokens, their string values, and a couple of helper functions. +4. `v/parser` The parser. It converts a list of tokens into an AST. +In V, objects can be used before declaration, so unknown types are marked as unresolved. +They are resolved later in the type checker. + 5. `v/table` V creates one table object that is shared by all parsers. It contains all types, consts, and functions, as well as several helpers to search for objects by name, register new objects, modify types' fields, etc. @@ -52,8 +51,8 @@ support of the x64 platform/ELF format. The rest of the directories are vlib modules: `builtin/` (strings, arrays, maps), `time/`, `os/`, etc. Their documentation is pretty clear. -## Example Workflow for Contributing ##### (provided by -[@spytheman](https://github.com/spytheman)) +## Example Workflow for Contributing +(provided by [@spytheman](https://github.com/spytheman)) (If you don't already have a GitHub account, please create one. Your GitHub username will be referred to later as 'YOUR_GITHUB_USERNAME'. Change it