Giter Club home page Giter Club logo

Comments (2)

kekyo avatar kekyo commented on June 15, 2024

When #1 was implemented, a small modification was made to the parser to recognize the following types:

  • If enclosed in quotes/double quotes, treat as string.
  • If it is enclosed in parentheses ([]), parse each comma-separated element recursively.
  • If it can be parsed as long, it is assumed to be of type long.
  • If it can be parsed as double, it is assumed to be of type double.
  • If it can be parsed as bool, it is assumed to be of type bool.
  • If it can be parsed as DateTimeOffset, it is assumed to be of type DateTimeOffset.
  • If it can be parsed as Uri, it is assumed to be of type Uri.
  • Otherwise, it is assumed to be a string type.

Uri may be too much. Even if we keep the value as Uri internally, I don't think it can be used effectively (it seems to be OK as string).
If possible, I would like to reimplement this in LL(1). However, DateTimeOffset is complicated, so I think a compromise is needed somewhere.

from marktheripper.

kekyo avatar kekyo commented on June 15, 2024

In #2, The parser code was standardized to unify the way metadata is read from JSON and the way values are handled in markdown headers.

from marktheripper.

Related Issues (18)

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.