Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Submit feedback
    • Contribute to GitLab
  • Sign in
A
Algorithms Library Toolkit Core
  • Project
    • Project
    • Details
    • Activity
    • Releases
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 33
    • Issues 33
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • Registry
    • Registry
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Commits
  • Issue Boards
  • Algorithms Library Toolkit
  • Algorithms Library Toolkit Core
  • Issues
  • #212

Closed
Open
Opened Feb 06, 2021 by Tomáš Pecka@peckato1
  • Report abuse
  • New issue
Report abuse New issue

Parser does not parse grammar with arithmetic symbols in input alphabet

This does not work:

> print string::Parse @grammar::Grammar "CFG({S}, {+, *, (, )}, {S -> }, S)"
0 [Standard exception]: Evaluation of algorithm string::Parse failed.
1 [Common exception]: Parse callback not registered.

One has to replace the symbols with text symbols

> print string::Parse @grammar::Grammar "CFG({S}, {plus, star, lpar, rpar}, {S -> }, S)"
(CFG nonterminalAlphabet = {S}terminalAlphabet = {lpar, plus, rpar, star}initialSymbol = Srules = {(S, {[]})})

Possibly related to #209

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
No due date
3
Labels
C-cli P-low T-bug
Assign labels
  • View project labels
Reference: algorithms-library-toolkit/automata-library#212