Wolfram Language Paclet Repository

Community-contributed installable additions to the Wolfram Language

Primary Navigation

    • Cloud & Deployment
    • Core Language & Structure
    • Data Manipulation & Analysis
    • Engineering Data & Computation
    • External Interfaces & Connections
    • Financial Data & Computation
    • Geographic Data & Computation
    • Geometry
    • Graphs & Networks
    • Higher Mathematical Computation
    • Images
    • Knowledge Representation & Natural Language
    • Machine Learning
    • Notebook Documents & Presentation
    • Scientific and Medical Data & Computation
    • Social, Cultural & Linguistic Data
    • Strings & Text
    • Symbolic & Numeric Computation
    • System Operation & Setup
    • Time-Related Computation
    • User Interface Construction
    • Visualization & Graphics
    • Random Paclet
    • Alphabetical List
  • Using Paclets
    • Get Started
    • Download Definition Notebook
  • Learn More about Wolfram Language

RakuppLink

Guides

  • Rakupp Interface Functions

Symbols

  • RakuppCall
  • RakuppCan
  • RakuppClose
  • RakuppElems
  • RakuppEval
  • RakuppGrammarFromFile
  • RakuppGrammarFromSource
  • RakuppGrammar
  • RakuppInt
  • RakuppLoad
  • RakuppMade
  • RakuppMatchedQ
  • RakuppMatch
  • RakuppNum
  • RakuppParse
  • RakuppShutdown
  • RakuppStr
  • RakuppTree
  • RakuppVersion
AntonAntonov`RakuppLink`
RakuppGrammarFromSource
​
RakuppGrammarFromSource
[src,"Name"…,"Actions"…]
compiles Raku grammar source and returns a
RakuppGrammar
. "Name" is the grammar's name in the source and may be omitted only when the grammar declaration is the source's last statement; "Actions" names an actions class in the same source.
​
Details and Options
▪
The following options can be given:
Examples  
(1)
Basic Examples  
(1)
Setup the RAKUPP_LIB environmental variable:
In[1]:=
SetEnvironment["RAKUPP_LIB"$HomeDirectory<>"/GitHub/ash/rakupp/build/librakupp.dylib"]
Here is a string with a Raku-language defined grammar:
In[2]:=
rkCode="grammar Parser { rule TOP { <who> <verb> <lang> } token who {:i I | you | we | they } token verb { <love> | <hate> } token love { '❤️' | '♥' | love } token hate { '🤮' | hate } token lang {:i < Raku Rust Go Python Ruby TypeScript PHP WL> }}";
Compile the grammar in Rakupp interpreter:
In[3]:=
g=
RakuppGrammarFromSource
[rkCode]
Out[3]=
RakuppGrammar[0,<anonymous>]
Parse a sentence:
In[4]:=
m=
RakuppParse
[g,"We 🤮 python"]
Out[4]=
RakuppMatchOpaqueRawPointer
Address:
ab6f78600
16

Show the tree corresponding to the obtained match object:
In[5]:=
RakuppTree
[m]
Out[5]=
langpython,verbhate🤮,whoWe
RelatedGuides
▪
Rakupp Interface Functions
""

© 2026 Wolfram. All rights reserved.

  • Legal & Privacy Policy
  • Contact Us
  • WolframAlpha.com
  • WolframCloud.com