• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Wp-gen
      • Dimacs-reader
      • Pfcs
        • Proof-support
        • Abstract-syntax
        • R1cs-subset
        • Semantics
        • Abstract-syntax-operations
        • Indexed-names
        • Well-formedness
        • Concrete-syntax
          • Lexer
          • Grammar
          • Parser
          • Tokenizer
            • Tokenize-pfcs
            • Filter-and-reduce-lexeme-tree-to-subtoken-trees
            • Check-and-deref-tree-token?
            • Check-and-deref-tree-lexeme?
            • Tokenize-pfcs-bytes
            • Is-tree-rulename?
        • R1cs-bridge
        • Parser-interface
      • Legacy-defrstobj
      • Proof-checker-array
      • Soft
      • C
      • Farray
      • Rp-rewriter
      • Instant-runoff-voting
      • Imp-language
      • Sidekick
      • Leftist-trees
      • Java
      • Taspi
      • Bitcoin
      • Riscv
      • Des
      • Ethereum
      • X86isa
      • Sha-2
      • Yul
      • Zcash
      • Proof-checker-itp13
      • Regex
      • ACL2-programming-language
      • Json
      • Jfkr
      • Equational
      • Cryptography
      • Poseidon
      • Where-do-i-place-my-book
      • Axe
      • Bigmems
      • Builtins
      • Execloader
      • Aleo
      • Solidity
      • Paco
      • Concurrent-programs
      • Bls12-377-curves
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
    • Math
    • Testing-utilities
  • Concrete-syntax

Tokenizer

Turn lexemes into tokens.

Subtopics

Tokenize-pfcs
Lexes the bytes of pfcs-string into a list of tokens.
Filter-and-reduce-lexeme-tree-to-subtoken-trees
Sees through lexeme and token trees to return token subtype trees.
Check-and-deref-tree-token?
Check if the ABNF tree is a nonleaf for rule "token", extracting its component tree (identifier, integer, operator, or separator) if successful. If it is not successful, returns a reserrp.
Check-and-deref-tree-lexeme?
Check if the ABNF tree is a nonleaf for rule "lexeme", extracting its component tree (token or whitespace) if successful. If not successful, returns a reserrp.
Tokenize-pfcs-bytes
Lexes the bytes of a pfcs system into a list of tokens.
Is-tree-rulename?
True if tree is nonleaf for rule rulename-string.