Commit 8695423 1 parent 338b1e1 commit 8695423 Copy full SHA for 8695423
File tree 5 files changed +342
-300
lines changed
5 files changed +342
-300
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import { Grammar } from "../parser/Grammar";
4
4
import { NoneTerminal , GrammarSymbol } from "../parser/GrammarSymbol" ;
5
5
import GrammarUtils from "./Utils" ;
6
6
import { EKeyword , ETokenType } from "../common" ;
7
- import SematicAnalyzer , { TranslationRule } from "../parser/SemanticAnalyzer" ;
7
+ import SemanticAnalyzer , { TranslationRule } from "../parser/SemanticAnalyzer" ;
8
8
import { ASTNode } from "../parser/AST" ;
9
9
10
10
const productionAndRules : [ GrammarSymbol [ ] , TranslationRule | undefined ] [ ] = [
@@ -849,7 +849,7 @@ const createGrammar = () =>
849
849
productionAndRules . map ( ( item ) => item [ 0 ] )
850
850
) ;
851
851
852
- const addTranslationRule = ( sa : SematicAnalyzer ) => {
852
+ const addTranslationRule = ( sa : SemanticAnalyzer ) => {
853
853
for ( let i = 0 ; i < productionAndRules . length ; i ++ ) {
854
854
const rule = productionAndRules [ i ] [ 1 ] ;
855
855
if ( rule ) {
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ export default class LexerUtils {
20
20
) ;
21
21
}
22
22
23
- static isPpCharactors ( charCode : number ) {
23
+ static isPpCharacters ( charCode : number ) {
24
24
return (
25
25
charCode === 35 || // #
26
26
charCode === 46 || // .
You can’t perform that action at this time.
0 commit comments