Giter Club home page Giter Club logo

Comments (7)

marekholly avatar marekholly commented on May 18, 2024 3

This should help you. Grammar is specified in Appendix A.

from typst.

SeniorMars avatar SeniorMars commented on May 18, 2024

Hello, would it be possible to let me see a prominent example of a document using this format? I want to make sure I'm parsing everything right.

from typst.

LaurenzV avatar LaurenzV commented on May 18, 2024

This should help you. Grammar is specified in Appendix A.

Keep in mind that I think this might already be somewhat out-of-date.

from typst.

laurmaedje avatar laurmaedje commented on May 18, 2024

Yeah, the thesis is out of date and the textmate grammar is not so great. The only true source is the parser.

from typst.

SeniorMars avatar SeniorMars commented on May 18, 2024

I heard that

This should help you. Grammar is specified in Appendix A.

This was written in typst, but I need help finding the code. Is it possible to share it for reference?

from typst.

SeniorMars avatar SeniorMars commented on May 18, 2024

Hello, is my parsing correct? The docs are a bit ambiguous https://typst.app/docs/reference/types/function/

================================================================================
Weird Function Calls
================================================================================

#emph[Hello]
#list[A][B]
#list([A], [B])
#enum(start: 2)[A][B]

--------------------------------------------------------------------------------

(source_file
 (function_call
  (identifier))
 (content_block)
 (function_call
  (identifier))
 (content_block)
 (content_block)
 (function_call
  (identifier)
  (parameters
   (parameter
    (expression
     (content_block)))
   (parameter
    (expression
     (content_block)))))
 (function_call
  (identifier)
  (parameters
   (parameter
    (default_parameter
     (identifier)
     (expression
      (int_literal))))))
 (content_block)
(content_block))

from typst.

reknih avatar reknih commented on May 18, 2024

Tracked in #118

from typst.

Related Issues (20)

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.