Skip to content

Syntax error for input in python #2

Description

@orgh0

Backend code In alphabet.cc

void
Alphabet::includeSymbol(wstring const &s)
{
  if(slexic.find(s) == slexic.end())
  {
    int slexic_size = slexic.size();
    slexic[s] = -(slexic_size+1);
    slexicinv.push_back(s);
  }
}

When I try to run something like

import transducer
 a = transducer.Alphabet()
 a.includeSymbol(L'<n>')

I get a syntax error.

Following was the code I was trying to run in python
http://wiki.apertium.org/wiki/Lttoolbox_API_examples

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions