Skip to content

This project is a tool to browse the libraries and packages of the GAP system

Notifications You must be signed in to change notification settings

Frozen-Olaf/GAP-Library-Browser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GAP-Library-Browser

version: v1.0.3

  • This version is the final version of the project.

This project is a tool to browse the libraries and packages of the GAP system.

It consists of two parts:

1. Dumping of GAP (written in GAP language)
2. The Browser Software with GUI (written in Java)

The following page has more information on what the browser can do:

Note:

The browser runs OK on linux or unix-based OS, however, on Windows, some functionality such as the display of a source code file path is compromised.


Dumping of GAP:

This part of the project is implemented by the GAP script dump.g, which dumps out information about all the operations and methods under them availlable in the GAP session where dumping is executed, into a JSON file, covering information such as:

  • name of the method;
  • filters to which arguments of the method are applicable;
  • rank of the method;
  • file path to the source code file in which the method is implemented;
  • line number range in the source code file that includes the implementation of the method.

To run the dumping, the package io and package json are required. If your GAP hasn't the two packages yet, they can be downloaded here:

After you confirm the two required packages are installed in your GAP system, to run the dumping, use the command:

Read("/file/path/to/dump.g");

If nothing goes wrong :), then a JSON file under the name format dump-<current_datetime>.json will be created under the current working directory of the running GAP session, which contains all the dumped information.

Note:

Dumping so far has only been tested on GAP 4.12.0 & 4.12.1.


The Browser Software with GUI:

This part of the project is the browser itself. It is managed and wrapped by Apache Maven. It can read the dumped JSON file, and allow user to perform searches within, and display the results in a table.

To compile and run the browser, simply in command line:

  1. cd to the directory of this project
  2. run the following command (specify the optional argument dark if you would like to start the browser in dark mode):

java -jar target/GAP_Library_Browser_v1.0.3.jar [dark]

Note:

This project CANNOT run with Java JDK < 8 (noninclusive), and it has not been tested on JDK < 11 yet.


Hope you have fun with this browser! :)

This project acknowledges the use of following icons:

About

This project is a tool to browse the libraries and packages of the GAP system

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published