GithubHelp home page GithubHelp logo

glipari / tipa Goto Github PK

View Code? Open in Web Editor NEW
12.0 6.0 5.0 873 KB

Tiny Parser in C++

License: GNU General Public License v3.0

C++ 99.69% CMake 0.28% Dockerfile 0.01% Shell 0.02%
cpp11 cpp14 parser parser-library grammar-parser tipa

tipa's People

Contributors

davidkorczynski avatar glipari avatar yiyayiyayoucheng avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

tipa's Issues

Any sample about how to use it to parse CSS?

Hi,

Any sample about how to use it to parse CSS?

Im the creator of ezored (https://ezored.com) and i want make a mobile library in C++ that parse CSS files (but more simple CSS style) and back to mobile platform objects. Example:

File: sample.css

button1[device=ipad] {
    font: "Roboto", 12
    textColor: "#FF0000"
    borderColor: "#000000"
} 

button1[device=iphone] {
    font: "Roboto", 12
    textColor: "#FF0000"
    borderColor: "#000000"
} 

And on iOS and Android i will do:

libX.parse("sample.css")
libX.applyButtonStyle(myButton, "button1")

// internally it will do something like this
// myButton.font = getFontProperty["font"]
// myButton.textColor = getColorProperty["textColor"]
// ...

There is a sample to parse CSS with key/value?

Can you help me understand how to parse using library?

Thanks.

unicode issue

Hi, i have an issue when ident contains non-latin characters.
for example, one character Ы will be parsed as two characters: Р«

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.