GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - foxyseta/tree-sitter-prolog: Mirror of https://codeberg.org/foxy/tree-sitter-prolog. Refer to the original repository for issue tracking

BranchesTags
Open more actions menu

Latest commit

 

History

116 Commits
116 Commits

Folders and files

NameName
Last commit message
Last commit date
bindings
bindings
 
 
grammars
grammars
 
 
queries
queries
 
 
test/highlight
test/highlight
 
 
.editorconfig
.editorconfig
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
.npmignore
.npmignore
 
 
.woodpecker.yml
.woodpecker.yml
 
 
CMakeLists.txt
CMakeLists.txt
 
 
Cargo.toml
Cargo.toml
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
Package.swift
Package.swift
 
 
README.md
README.md
 
 
binding.gyp
binding.gyp
 
 
go.mod
go.mod
 
 
package.json
package.json
 
 
pnpm-lock.yaml
pnpm-lock.yaml
 
 
pyproject.toml
pyproject.toml
 
 
setup.py
setup.py
 
 
tree-sitter.json
tree-sitter.json
 
 

Repository files navigation

tree-sitter-prolog

status-badge

Prolog grammar for Tree-sitter. The "References" section lists the various extensions that currently have their own grammar besides ISO Prolog.

Feel free to contribute with new ones! It is super easy, as you can just extend an existing one. See .woodpecker.yml for the current version of Tree-sitter we are testing against.

Project structure

The project uses pnpm as its package manager. Files package.json, tree-sitter.json, and pnpm-lock.yaml can be found in the root folder.

Grammars

A grammar.js file for a Prolog extension xxx is located at grammars/xxx/grammar.js. They are formatted using dprint, according to grammars/dprint.json.

Parsers

Parser sources for a Prolog extension xxx are located at grammars/xxx/src/. If you are not using the generate pnpm script and are manually invoking the tree-sitter generate command instead, make sure your current directory is grammars/xxx/.

Queries

If a .scm file does not need modifications between two or more grammars, it can be found in queries/. Otherwise, its version for grammar xxx is located at grammars/xxx/queries/.

Tests

Corpus tests for a grammar xxx are located at grammars/xxx/tests/corpus/. Highlight tests of all grammars are located at tests/highlight/.

References

ISO Prolog

  • ISO Prolog standard, part 1: General core, ISO-IEC-13211-1
  • ISO Prolog standard, part 2: Modules, ISO-IEC-13211-2

ProbLog

  • L. De Raedt, A. Kimmig and H. Toivonen. ProbLog: A Probabilistic Prolog and its Application in Link Discovery. IJCAI 2007, Proceedings of the 20th International Joint Conference on Artificial Intelligence, pp. 2462 - 2467, 2007.

About

Mirror of https://codeberg.org/foxy/tree-sitter-prolog. Refer to the original repository for issue tracking

codeberg.org/foxy/tree-sitter-prolog

Topics

grammarparsingproblogprologtree-sitter

Resources

Readme
AGPL-3.0 license
Activity

Stars

4 stars

Watchers

1 watching

Forks

4 forks
Report repository

Releases

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.