Skip to content
  • 最新
  • 版块
  • 东岳流体
  • 随机看[请狂点我]
皮肤
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • 默认(不使用皮肤)
  • 不使用皮肤
折叠
CFD中文网

CFD中文网

  1. CFD中文网
  2. OpenFOAM
  3. Flex有人了解么?

Flex有人了解么?

已定时 已固定 已锁定 已移动 OpenFOAM
2 帖子 2 发布者 3.2k 浏览
  • 从旧到新
  • 从新到旧
  • 最多赞同
回复
  • 在新帖中回复
登录后回复
此主题已被删除。只有拥有主题管理权限的用户可以查看。
  • C 离线
    C 离线
    CFD中文网
    写于 最后由 CFD中文网 编辑
    #1

    http://flex.sourceforge.net/

    https://www.baidu.com/s?wd=flex linux&pn=0&oq=flex linux&tn=baiduhome_pg&ie=utf-8&usm=1&rsv_idx=2&rsv_pq=f10c1bcb0017d3ef&rsv_t=63192P0pX%2BoImYG7RGAFEMIserOduB%2FtPDLiDV3nZJ7vJT16E8uP5L4%2BN0qrMI3xzQ4U

    目前OpenFOAM关于网格转换等需要使用Flex,不过这个东西主要是做什么的?

    目前只是粗略的发现他会生成一个.C文件

    Flex is a tool for generating scanners. A scanner, sometimes called a tokenizer, is a program which recognizes lexical patterns in text. The flex program reads user-specified input files, or its standard input if no file names are given, for a description of a scanner to generate. The description is in the form of pairs of regular expressions and C code, called rules. Flex generates a C source file named, "lex.yy.c", which defines the function yylex(). The file "lex.yy.c" can be compiled and linked to produce an executable. When the executable is run, it analyzes its input for occurrences of text matching the regular expressions for each rule. Whenever it finds a match, it executes the corresponding C code.

    CFD中国标准用户测试帐号
    目前由徐笑笑登录

    1 条回复 最后回复
  • WayneW 离线
    WayneW 离线
    Wayne
    写于 最后由 编辑
    #2

    利用正则表达式生成文本分析程序

    主要做AI,懂一点CFD

    1 条回复 最后回复

  • 登录

  • 登录或注册以进行搜索。
  • 第一个帖子
    最后一个帖子
0
  • 最新
  • 版块
  • 东岳流体
  • 随机看[请狂点我]