• Stars
    star
    161
  • Rank 233,470 (Top 5 %)
  • Language
    Vim Script
  • License
    Other
  • Created almost 12 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Vim script parser

Vim script parsers

Build Status codecov

This is Vim script language (a.k.a. VimL) parsers.

Features

The parser to make AST (Abstract Syntax Tree)

Supported languages

This parser provide same feature for following languages.

  • Vim script
  • Python
  • JavaScript

Example

All of interfaces are provided from vimlparser module. VimLParser parse into AST using StringReader, and Compiler to compile nodes.

let s:VP = vimlparser#import()
let code = [
\ 'let s:message = printf("hello %d", 1+(2*3))'
\]
let r = s:VP.StringReader.new(code)
let p = s:VP.VimLParser.new()
let c = s:VP.Compiler.new()
echo join(c.compile(p.parse(r)), "\n")

This above code output following.

(let = s:message (printf "hello %d" (+ 1 (* 2 3))))

About project name

We know a name "VimL" is not the common short form of "Vim scripting language". But we choice "VimL" for historical and practical reasons and compatibility.

More Repositories

1

vital.vim

A comprehensive Vim utility functions for Vim plugins
Vim Script
573
star
2

issues

有志で既知のバグや要望を検討・管理し、オフィシャルへの還元をしていきます。
JavaScript
341
star
3

vimdoc-ja

A project which translate Vim documents into Japanese.
Vim Script
333
star
4

vim-cpp

c or cpp syntax files
Vim Script
145
star
5

go-vimlparser

⚡ Vim Script Parser written in Go
Vim Script
144
star
6

reading-vimrc

vimrc読書会まとめ
JavaScript
106
star
7

vim-jp.github.io

The website for vim-jp.org
JavaScript
92
star
8

vim-go-extra

Extra plugin for golang
Vim Script
90
star
9

vimdoc-ja-working

vimdoc-ja working repository
Vim Script
76
star
10

ekiden

vim-jp記事執筆企画「駅伝」の管理リポジトリ
Astro
51
star
11

syntax-vim-ex

An excellent Vim's syntax highlighting file for Vim script
Vim Script
49
star
12

vimconf

Obsoleted. Moved to https://github.com/vim-jp/vimconf.org
CSS
45
star
13

vimconf.org

An International Vim Conference
HTML
45
star
14

nvimdoc-ja

neovimヘルプの日本語翻訳です
Shell
42
star
15

vim-obsoleted

Please use vim/vim. Vim came to github.
C
32
star
16

autofmt

Text Formatting Plugin
Vim Script
28
star
17

slacklog-generator

Archive generator for Slack
Go
26
star
18

ctags

Use https://ctags.io instead (This was fork of http://ctags.sourceforge.net/)
C
26
star
19

lang-ja

Manage Japanese language files which distributed with vim.
Roff
21
star
20

icon

Icon storage for vim-jp
19
star
21

vital-complete

Completion for vital.vim
Vim Script
14
star
22

vim-ci

travis-ci stub project for Vim (deprecated)
Shell
14
star
23

slacklog

Archives of vim-jp.slack.com
12
star
24

redirects

Provide redirects for Vim binaries
HTML
11
star
25

vim-java

java syntax files
Vim Script
9
star
26

vimdoc-en

Vim Script
7
star
27

vim-sweep_trail

「Vim script テクニックバイブル〜Vim使いの魔法の杖」サンプルプラグイン
Vim Script
7
star
28

vim-streem

streem-lang syntax file for vim
Vim Script
6
star
29

ujihisa.vim-3

ujihisa.vim#3 -- an international Vim conference
Ruby
3
star
30

ujihisa.vim-2

ujihisa.vim #2
Ruby
3
star
31

vim-users-jp

Older contents on vim-users.jp
HTML
3
star
32

coc

3
star
33

debug.vim

so far jdb and gdb
2
star
34

vim-script-styleguide-sketch

1
star
35

sandbox

CSS
1
star
36

miv

C
1
star