Giter VIP home page Giter VIP logo

matchtool's Introduction

MatchTool DOI

MatchTool is a simple UI for experimenting with the matching functionality of pattern code.

UI Explanation

MatchTool can be open from the World Menu > Tools category.

demo image

The main window consist of 3 columns. The first column consists of two code areas. The top one should be used to enter a match code also known as pattern code, while the bottom one should be used for entering plain Smalltalk code as a test sample. Both text areas can be switched into a "method mode" where they will parse the entered text as if it were a method, otherwise they expect the entered code to be an expression. The second column contains the result of matching, a help button and the main execute button (with a cmd(ctrl)+enter shortcut) on top of it. After the button is pressed, both match code and test code are accepted and if there are no errors the matching is performed. MatchTool searches for the match pattern in all the test samples and lists the detected matches in the result list. Clicking on the items from the result list highlights the matched interval in the test sample code area and shows the match map of the pattern code in the third column.

Match map probably needs more explanation. Imagine you have a pattern

`item printOn: `@expr

While it will match a test sample

url printOn: FileStream stdout

the match map list will tell you that ``itemwas mapped tourl` while ` `@expr` was mapped to `FileStream stdout`.

Installation

Match tool works on Pharo 6 (yes, not even on 5 as 6th already has crucial improvements). It can be installed from the catalog or by running:

Metacello new
  repository: 'github://Uko/MatchTool';
  baseline: 'MatchTool';
  load

matchtool's People

Contributors

uko avatar stephaneggermont avatar

Watchers

James Cloos avatar

Forkers

pharo-spec

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.