• 2024-04-23English Grammar Analysis
    目录各种功能词的认识名词(Noun)冠词(Article)代词(Pronoun)动词(Verb)介词(Preposition)形容词(Adjective)副词(Adverb)量词(Quantifier)情态动词(ModalVerb)连词(Conjunction)感叹词(Interjection)数词(Numeral)句型动词不定式动名词分词名词性从句定语从句和关系代词定语从句和关系副词状语从句虚拟语
  • 2024-04-07解决bad SQL grammar []; nested exception is java.sql.SQLSyntaxErrorException
    解决badSQLgrammar[];nestedexceptionisjava.sql.SQLSyntaxErrorException解决SpringBoot中MySQL数据库报错“BadSQLGrammar”的问题目录解决SpringBoot中MySQL数据库报错“BadSQLGrammar”的问题问题描述解决步骤解决方案结论附:MySql常用配置参数及使用场景
  • 2023-11-30秦疆的Java课程笔记:48 方法 命令行传递参数
    一般简称“命令行传参”,了解即可。有时候需要运行一个程序时再传递给它消息。这要靠传递命令行参数给main()函数来实现。格式如下:publicclassCommandLine{ publicstaticvoidmain(Stringargs[]){ for(inti=0;i<args.length;i++){ System.out.println("a
  • 2023-11-11规范LR(1)语法分析表
    前面已经实现了SLR语法分析表,但是可能会出现即使语法不是二义性文法,也存在移入/规约冲突状态i包含项[A->α],当状态i出现在栈顶时,栈中的可行前缀时βα且在任何最后句型中a都不可能跟在βA之后,那么当输入a时不应该A->α进行规约为了解决这个问题,引入更强大的构造语法分析
  • 2023-11-04构造SLR语法分析表
    构造SLR语法分析表方法:1)构造G‘的规范LR(0)项集族2)根据规则生成动作3)生成转换4)设置报错/***P157规范LR(0)项集族*@paramgrammar*/publicList<SetOfItems>items(Grammargrammar){intsetId=0;List<SetOfItems>result
  • 2023-07-07IDEA Plugin 开发编程语言
    参考:https://plugins.jetbrains.com/docs/intellij/custom-language-support-tutorial.html外部环境注意事项软件IDEACommunityEditionSourceFile插件Grammar-Kit\PsiViewer项目设置增加并设置项目SDK为IntelliJPluginSDKBNF注意事项Grammar-Kit能够独立调试BNF
  • 2023-06-03解释器模式
    Givealanguage,theInterpreterdesignpatterndefinesarepresentationforitsgrammaralongwithaninterpreterthatusestherepresentationtointerpretsentencesinthelanguage.TheInterpreterDesignPatternprovidesawaytoevaluatelanguagegram
  • 2023-04-15语言模型与语法树
    week1语言模型与语法树基于规则的语言模型importrandomdefadj(): ###随机选取一个returnrandom.choice('蓝色的|好看的|小小的'.split('|')).split()[0]defadj_star(): ####返回一个adj()或多个或者返回''returnrandom.choice([lambda:'',lambd
  • 2023-02-04SV-grammar
    moduledata_type;//TODO-2:distinguishbitandlogicinitialbegin:bit_vs_logicbitv1;logicv2;wait(b_bit_vs_logic==1);$display("bit_vs_logicp
  • 2023-02-04G6 Lesson2 Grammar
    GrammarWhatAretheFourKindsofSentence?adeclarativesentencemakesastatement.Itendswithaperiod.Aninterrogativesentenceasksaquestion.Itends
  • 2023-02-04题解 G. Grammar Path 2020-2021 ICPC NERC (NEERC), North-Western Russia Regional Contest (Northern Subr
    传送门【大意】给定一个CNF和一个有向图。有向图上的每一条边都写上了一个字母。要求你从\(s\)到\(t\)走一条尽可能短的路,且将经过的字母写下来后,这个字符串能被
  • 2023-02-03G6 lesson1 grammar
    GrammarWhatisasentence?Asentenceisagroupofwordsthatexpressesacompletethought.Asentencemustincludeacompletesubject,allthewordsthatte
  • 2022-11-28python grammar、C/C++ Python Parsing Engine
    pythongrammar、C/C++PythonParsingEnginecatalog1.Python语言简介2.Python模块3.嵌入式Python解析引擎:C++调用Python4.Python调用C(b
  • 2022-08-30StatementCallback; bad SQL grammar [DROP TABLE IF EXISTS
    StatementCallback;badSQLgrammar[DROPTABLEIFEXISTS javaspringboot项目自动建表报错 在配置文件中,spring.datasource.url 后追加参数:allowMultiQueri
  • 2022-08-18con·tempo·rary
    temporary[fromtempus'time']随时间而变——暂时的≠permanentcontemporary[fromcom-+tempus'time']和……时间一样。和目前时间一样——当代的=moderntemp