bblfsh / documentation

Babelfish documentation (GitBook)
https://docs.sourced.tech/babelfish
Creative Commons Attribution Share Alike 4.0 International
41 stars 30 forks source link

Add a language aliases table #264

Closed dennwc closed 5 years ago

dennwc commented 5 years ago

Add a (secondary) language aliases table, as discussed in #255.

Signed-off-by: Denys Smirnov denys@sourced.tech


This change is Reviewable

kuba-- commented 5 years ago

_tools/languages/main.go, line 133 at r1 (raw file):

      buf.WriteString("\n### Aliases for languages\n\n| Language | Aliases |\n| :--- | :--- |\n")
      for _, m := range list {
          if !m.ForCurrentSDK() || m.InDevelopment() || len(m.Aliases) == 0 {

maybe we can store these information in some slice from the first loop and simplify (get rid of the same condition check) here - WDYT.